summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-06 12:31:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-06 12:31:09 +0200
commit3f26250d73d5c196a66262821a7980ccdbd8deed (patch)
tree6dde51e7159bee42448d95fca35edc8e0be92561 /src/control
parentfixed linux saving (diff)
downloadre3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.gz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.bz2
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.lz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.xz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.zst
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index bc15a695..94590087 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -11763,7 +11763,11 @@ void CTheScripts::UpdateObjectIndices()
if (!pModel)
continue;
strcpy(name, pModel->GetName());
+#ifdef FIX_BUGS
+ for (int k = 0; k < USED_OBJECT_NAME_LENGTH && name[k]; k++)
+#else
for (int k = 0; k < USED_OBJECT_NAME_LENGTH; k++)
+#endif
name[k] = toupper(name[k]);
if (strcmp(name, UsedObjectArray[i].name) == 0) {
found = true;