lparser.py: if local name is invalid, resort to fallback

This commit is contained in:
CPunch 2022-08-12 00:04:11 -05:00
parent 0f72e71a59
commit a6623c8953

View File

@ -89,7 +89,10 @@ class LuaDecomp:
def __loadLocals(self):
for i in range(len(self.chunk.locals)):
self.locals[i] = self.chunk.locals[i].name
if not self.chunk.locals[i].name == "":
self.locals[i] = self.chunk.locals[i].name
else:
self.__makeLocalIdentifier(i)
def __addExpr(self, code: str) -> None:
self.src += code