mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-26 08:20:04 +00:00
lparser.py: if local name is invalid, resort to fallback
This commit is contained in:
parent
0f72e71a59
commit
a6623c8953
@ -89,7 +89,10 @@ class LuaDecomp:
|
|||||||
|
|
||||||
def __loadLocals(self):
|
def __loadLocals(self):
|
||||||
for i in range(len(self.chunk.locals)):
|
for i in range(len(self.chunk.locals)):
|
||||||
|
if not self.chunk.locals[i].name == "":
|
||||||
self.locals[i] = self.chunk.locals[i].name
|
self.locals[i] = self.chunk.locals[i].name
|
||||||
|
else:
|
||||||
|
self.__makeLocalIdentifier(i)
|
||||||
|
|
||||||
def __addExpr(self, code: str) -> None:
|
def __addExpr(self, code: str) -> None:
|
||||||
self.src += code
|
self.src += code
|
||||||
|
Loading…
Reference in New Issue
Block a user