summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-01-03 23:10:35 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-01-03 23:10:35 +0100
commitc5e7de02fec64d7aab38cb424e17455443cbeba4 (patch)
tree9264fe0064471e119756deb4c72200b1912ba43d /src/control/Script.cpp
parentscript 800-899 (diff)
downloadre3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar.gz
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar.bz2
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar.lz
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar.xz
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.tar.zst
re3-c5e7de02fec64d7aab38cb424e17455443cbeba4.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 34d22897..f3f9c5a8 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -7812,7 +7812,7 @@ void CTheScripts::AddToInvisibilitySwapArray(CEntity* pEntity, bool remove)
{
int i = 0;
bool found = false;
- while (i < 20 && !found) {
+ while (i < MAX_NUM_INVISIBILITY_SETTINGS && !found) {
if (InvisibilitySettingArray[i] == pEntity)
found = true;
else
@@ -7824,9 +7824,9 @@ void CTheScripts::AddToInvisibilitySwapArray(CEntity* pEntity, bool remove)
}
else if (!remove) {
int j = 0;
- while (i < 20 && !found) {
+ while (i < MAX_NUM_INVISIBILITY_SETTINGS && !found) {
if (InvisibilitySettingArray[i] == nil)
- found = false;
+ found = true;
else
i++;
}