Skip to content

Commit

Permalink
Fix last contacted entity (multitheftauto#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij authored Jun 11, 2024
1 parent d80be7f commit 68581e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Client/game_sa/CBuildingsPoolSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ void CBuildingsPoolSA::RemovePedsContactEnityLinks()
CPedSAInterface* ped = pedLinks->pEntity->GetPedInterface();
ped->m_pCollidedEntity = nullptr;
ped->pContactEntity = nullptr;
ped->pLastContactEntity = nullptr;
ped->pLastContactedEntity[0] = nullptr;
ped->pLastContactedEntity[1] = nullptr;
ped->pLastContactedEntity[2] = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions Client/game_sa/CPedSA.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ class CPedSAInterface : public CPhysicalSAInterface // +1420 = curre
float fTargetRotation;
float fRotationSpeed;
float fMoveAnim;
CPedSAInterface* unkPed;
CEntitySAInterface* pContactEntity;
CVector unk_56C;
CVector unk_578;

CEntitySAInterface* pContactEntity;
CEntitySAInterface* pLastContactEntity;
CVehicleSAInterface* pLastVehicle;
CVehicleSAInterface* pVehicle;

Expand Down

0 comments on commit 68581e1

Please sign in to comment.