summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetObjectList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetObjectList.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetObjectList.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ZAPD/ZRoom/Commands/SetObjectList.cpp b/ZAPD/ZRoom/Commands/SetObjectList.cpp
index 6a88953..6d0164a 100644
--- a/ZAPD/ZRoom/Commands/SetObjectList.cpp
+++ b/ZAPD/ZRoom/Commands/SetObjectList.cpp
@@ -47,8 +47,7 @@ string SetObjectList::GenerateSourceCodePass1(string roomName, int baseAddress)
for (size_t i = 0; i < objects.size(); i++)
{
uint16_t objectIndex = objects[i];
- declaration += StringHelper::Sprintf(
- " %s,", Globals::Instance->cfg->objectList[objectIndex].c_str());
+ declaration += StringHelper::Sprintf(" %s,", ZNames::GetObjectName(objectIndex).c_str());
if (i < objects.size() - 1)
declaration += "\n";