mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-13 18:24:54 +02:00
fix Bait crash
This commit is contained in:
@@ -9147,7 +9147,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
|
|||||||
}
|
}
|
||||||
case COMMAND_SET_JAMES_CAR_ON_PATH_TO_PLAYER:
|
case COMMAND_SET_JAMES_CAR_ON_PATH_TO_PLAYER:
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 2);
|
CollectParameters(&m_nIp, 1);
|
||||||
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
||||||
assert(pVehicle);
|
assert(pVehicle);
|
||||||
CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, FindPlayerCoors(), false);
|
CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, FindPlayerCoors(), false);
|
||||||
|
Reference in New Issue
Block a user