summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/ZRoom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZRoom/ZRoom.cpp')
-rw-r--r--ZAPD/ZRoom/ZRoom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/ZRoom.cpp b/ZAPD/ZRoom/ZRoom.cpp
index 9f4d5a9..edc0cad 100644
--- a/ZAPD/ZRoom/ZRoom.cpp
+++ b/ZAPD/ZRoom/ZRoom.cpp
@@ -301,7 +301,7 @@ Declaration* ZRoom::DeclareVar(const std::string& prefix, const std::string& bod
Declaration* decl =
parent->AddDeclarationArray(rawDataIndex, GetDeclarationAlignment(), GetRawDataSize(),
- GetSourceTypeName(), auxName, 0, body);
+ GetSourceTypeName(), auxName, commands.size(), body);
decl->staticConf = staticConf;
return decl;
}