Skip to content
This repository has been archived by the owner. It is now read-only.

600-799 script commands; bug fixes #285

Merged
merged 13 commits into from Jan 7, 2020
Prev
fixes
  • Loading branch information
Nick007J committed Jan 3, 2020
commit c5e7de02fec64d7aab38cb424e17455443cbeba4
@@ -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++;
}