Skip to content

Commit 4e7fd05

Browse files
authored
Fix #2922: Unable to warp client-side ped to client-side trailer (#3021)
1 parent 5947012 commit 4e7fd05

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9788,7 +9788,10 @@ bool CStaticFunctionDefinitions::WarpPedIntoVehicle(CClientPed* pPed, CClientVeh
97889788

97899789
// Valid seat id for that vehicle?
97909790
uchar ucMaxPassengers = CClientVehicleManager::GetMaxPassengerCount(pVehicle->GetModel());
9791-
if (uiSeat > ucMaxPassengers || ucMaxPassengers == 255)
9791+
if (uiSeat > ucMaxPassengers)
9792+
return false;
9793+
9794+
if (uiSeat > 0 && ucMaxPassengers == 255)
97929795
return false;
97939796

97949797
// Toss the previous player out of it if neccessary

0 commit comments

Comments
 (0)