summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorJack Powell <jack9267@users.noreply.github.com>2020-08-18 17:59:19 +0200
committerJack Powell <jack9267@users.noreply.github.com>2020-08-18 17:59:19 +0200
commit809c09938a47a030a386fead465147b753ac4286 (patch)
tree55d68941b9c957d67ff44e209df284c5d71ff55d /src/control
parentFix small logic mistake in CGarage::RemoveCarsBlockingDoorNotInside (diff)
downloadre3-809c09938a47a030a386fead465147b753ac4286.tar
re3-809c09938a47a030a386fead465147b753ac4286.tar.gz
re3-809c09938a47a030a386fead465147b753ac4286.tar.bz2
re3-809c09938a47a030a386fead465147b753ac4286.tar.lz
re3-809c09938a47a030a386fead465147b753ac4286.tar.xz
re3-809c09938a47a030a386fead465147b753ac4286.tar.zst
re3-809c09938a47a030a386fead465147b753ac4286.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index fa0fb463..93c1ffe3 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9700,7 +9700,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
return 0;
CVehicle* car;
if (!CModelInfo::IsBikeModel(model))
- car = new CAutomobile(model, MISSION_VEHICLE);
+ car = new CAutomobile(model, RANDOM_VEHICLE);
CVector pos = *(CVector*)&ScriptParams[0];
pos.z += car->GetDistanceFromCentreOfMassToBaseOfModel();
car->SetPosition(pos);