We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53d3e8a + 61a0e19 commit 3f129e3Copy full SHA for 3f129e3
Client/game_sa/CBuildingsPoolSA.cpp
@@ -374,7 +374,8 @@ void CBuildingsPoolSA::RemovePedsContactEnityLinks()
374
ped->pLastContactedEntity[3] = nullptr;
375
ped->m_ucCollisionState = 0;
376
377
- reinterpret_cast<CPlayerPedSA*>(pedLinks->pEntity)->SetTargetedEntity(nullptr);
+ if (auto* playerPed = dynamic_cast<CPlayerPedSA*>(pedLinks->pEntity))
378
+ playerPed->SetTargetedEntity(nullptr);
379
}
380
381
0 commit comments