Fix variable transforms inside methods.

This commit is contained in:
Relintai 2022-06-04 08:25:03 +02:00
parent e28b7cfb82
commit 2eb04ef96f

View File

@ -382,7 +382,15 @@ class GDSScope:
s += indents + l + ";\n"
continue
s += indents + l + ";\n"
if l.begins_with("var "):
if l.find("preload") != -1:
s += indents + "//" + l + ";\n"
continue
s += indents + " " + transform_variable_to_cpp(l) + ";\n"
else:
s += indents + l + ";\n"
s += "}\n"
return s