diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-07 03:15:10 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-07 03:15:10 +0200 |
commit | 1c0189979965cb237aa5fb300a5522e1408123ac (patch) | |
tree | 791f188c7d4f87111bf3235b87f4b74e2fbebf9e /src/control/Script.cpp | |
parent | CBike done (diff) | |
parent | FONT_BANK renamed to FONT_STANDARD (diff) | |
download | re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.gz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.bz2 re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.lz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.xz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.zst re3-1c0189979965cb237aa5fb300a5522e1408123ac.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index a2c60872..76264617 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -14288,7 +14288,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; |