diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-18 16:30:51 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-18 16:30:51 +0200 |
commit | d7789661cda9c07988834aa9c6c53d5cee888612 (patch) | |
tree | b17c3aa13c73ea0f21d645962dccea83486d9dc7 /src/peds/CivilianPed.cpp | |
parent | fix in ped attractor (diff) | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar.gz re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar.bz2 re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar.lz re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar.xz re3-d7789661cda9c07988834aa9c6c53d5cee888612.tar.zst re3-d7789661cda9c07988834aa9c6c53d5cee888612.zip |
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r-- | src/peds/CivilianPed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp index 1950c4b3..74a7c9ba 100644 --- a/src/peds/CivilianPed.cpp +++ b/src/peds/CivilianPed.cpp @@ -425,7 +425,7 @@ void CCivilianPed::FindNearbyAttractorsSectorList(CPtrList& list, float& minDist { for (CPtrNode* pNode = list.first; pNode != nil; pNode = pNode->next) { CEntity* pEntity = (CEntity*)pNode->item; - if (pEntity->IsObject() && (!pEntity->IsStatic() || ((CObject*)pEntity)->bHasBeenDamaged)) + if (pEntity->IsObject() && (!pEntity->GetIsStatic() || ((CObject*)pEntity)->bHasBeenDamaged)) continue; CBaseModelInfo* pModelInfo = CModelInfo::GetModelInfo(pEntity->GetModelIndex()); for (int i = 0; i < pModelInfo->GetNum2dEffects(); i++) { |