diff --git a/AMBuildScript b/AMBuildScript index 6f33f20b..9a42169e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -80,8 +80,9 @@ class SM: oldhead = head head, tail = os.path.split(head) if i.startswith('HL2SDK'): - (info, sdk) = findDictByKey(self.possibleSdks, 'sdk', i) - self.sdkInfo[sdk] = info + if head != None and head != oldhead: + (info, sdk) = findDictByKey(self.possibleSdks, 'sdk', i) + self.sdkInfo[sdk] = info elif head == None or head == oldhead: raise Exception('Could not find a valid path for {0}'.format(i)) AMBuild.cache.CacheVariable(i, path)