summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-12 19:22:35 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-12 19:22:35 +0200
commit615bd1e87856c1abbf541e595742bf6cce7d4a5b (patch)
treead30faa21bdaf947159da419bc750e6a99f4e165 /src/control/Garages.cpp
parentfix garages (diff)
downloadre3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar.gz
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar.bz2
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar.lz
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar.xz
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.tar.zst
re3-615bd1e87856c1abbf541e595742bf6cce7d4a5b.zip
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r--src/control/Garages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index a5e16c6b..d8fd3ec0 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1509,7 +1509,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex)
if (bIsDummy) {
if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex((CDummy*)pDoor)))
return true;
- if (nIndex != CPools::GetDummyPool()->GetIndex((CDummy*)pDoor))
+ if (nIndex != (CPools::GetDummyPool()->GetIndex((CDummy*)pDoor) & 0x7F))
bNeedToFindDoorEntities = true;
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
return true;
@@ -1517,7 +1517,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex)
else {
if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex((CObject*)pDoor)))
return true;
- if (nIndex != CPools::GetObjectPool()->GetIndex((CObject*)pDoor))
+ if (nIndex != (CPools::GetObjectPool()->GetIndex((CObject*)pDoor) & 0x7F))
bNeedToFindDoorEntities = true;
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
return true;