mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-10 18:09:16 +00:00
fixes
This commit is contained in:
parent
0723dade76
commit
c5e7de02fe
|
@ -7812,7 +7812,7 @@ void CTheScripts::AddToInvisibilitySwapArray(CEntity* pEntity, bool remove)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
while (i < 20 && !found) {
|
while (i < MAX_NUM_INVISIBILITY_SETTINGS && !found) {
|
||||||
if (InvisibilitySettingArray[i] == pEntity)
|
if (InvisibilitySettingArray[i] == pEntity)
|
||||||
found = true;
|
found = true;
|
||||||
else
|
else
|
||||||
|
@ -7824,9 +7824,9 @@ void CTheScripts::AddToInvisibilitySwapArray(CEntity* pEntity, bool remove)
|
||||||
}
|
}
|
||||||
else if (!remove) {
|
else if (!remove) {
|
||||||
int j = 0;
|
int j = 0;
|
||||||
while (i < 20 && !found) {
|
while (i < MAX_NUM_INVISIBILITY_SETTINGS && !found) {
|
||||||
if (InvisibilitySettingArray[i] == nil)
|
if (InvisibilitySettingArray[i] == nil)
|
||||||
found = false;
|
found = true;
|
||||||
else
|
else
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue