Skip to content

Commit 3f129e3

Browse files
Synchronize changes from 1.6 master branch [ci skip]
61a0e19 Addenum to #4093 (#4095) 69ceac7 Visual Studio Update
2 parents 53d3e8a + 61a0e19 commit 3f129e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/game_sa/CBuildingsPoolSA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ void CBuildingsPoolSA::RemovePedsContactEnityLinks()
374374
ped->pLastContactedEntity[3] = nullptr;
375375
ped->m_ucCollisionState = 0;
376376

377-
reinterpret_cast<CPlayerPedSA*>(pedLinks->pEntity)->SetTargetedEntity(nullptr);
377+
if (auto* playerPed = dynamic_cast<CPlayerPedSA*>(pedLinks->pEntity))
378+
playerPed->SetTargetedEntity(nullptr);
378379
}
379380
}
380381
}

0 commit comments

Comments
 (0)