Skip to content

Commit 443d745

Browse files
committed
Review
1 parent 3a75606 commit 443d745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ bool CStaticFunctionDefinitions::SetElementPosition(CClientEntity& Entity, const
10791079
if (Entity.GetType() == CCLIENTVEHICLE)
10801080
{
10811081
CClientPed* driver = static_cast<CClientVehicle&>(Entity).GetOccupant(0);
1082-
if (!Entity.IsLocalEntity() && !static_cast<CDeathmatchVehicle&>(Entity).IsSyncing() && (driver && !driver->IsLocalPlayer()))
1082+
if (!Entity.IsLocalEntity() && !static_cast<CDeathmatchVehicle&>(Entity).IsSyncing() && (!driver || !driver->IsLocalPlayer()))
10831083
return false;
10841084
}
10851085

0 commit comments

Comments
 (0)