Skip to content

Commit 372b1e5

Browse files
authored
Improved checks for vehicle in & out packet (#4112)
1 parent 027d01a commit 372b1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ void CGame::Packet_Vehicle_InOut(CVehicleInOutPacket& Packet)
29732973
// Grab the ped with the chosen ID
29742974
ElementID PedID = Packet.GetPedID();
29752975
CElement* pPedElement = CElementIDs::GetElement(PedID);
2976-
if (pPedElement && IS_PED(pPedElement))
2976+
if (pPedElement && IS_PED(pPedElement) && (pPedElement == pPlayer || !IS_PLAYER(pPedElement)))
29772977
{
29782978
CPed* pPed = static_cast<CPed*>(pPedElement);
29792979
bool bValidPed = false;

0 commit comments

Comments
 (0)