summaryrefslogtreecommitdiffstats
path: root/src/control/Script4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/Script4.cpp')
-rw-r--r--src/control/Script4.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp
index c3eb2e89..d6a08c3d 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -935,6 +935,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
script_assert(pVehicle);
pPed->SetObjective(OBJECTIVE_ENTER_CAR_AS_DRIVER, pVehicle);
pPed->WarpPedIntoCar(pVehicle);
+ pPed->RestorePreviousObjective();
return 0;
}
case COMMAND_WARP_CHAR_INTO_CAR: