summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-14 21:15:12 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-14 21:15:12 +0100
commit0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab (patch)
tree594bab05be80241abf334515e86de90a2abcf8fe
parentFix(?) (diff)
downloadre3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar.gz
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar.bz2
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar.lz
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar.xz
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.tar.zst
re3-0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script2.cpp b/src/control/Script2.cpp
index a94bf907..f2d9ed9e 100644
--- a/src/control/Script2.cpp
+++ b/src/control/Script2.cpp
@@ -1299,9 +1299,9 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 2);
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
script_assert(pPed);
- CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[1]);
+ CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[1]);
pPed->bScriptObjectiveCompleted = false;
- pPed->SetObjective(OBJECTIVE_DESTROY_OBJECT, pVehicle);
+ pPed->SetObjective(OBJECTIVE_DESTROY_OBJECT, pObject);
return 0;
}
case COMMAND_SET_CHAR_OBJ_DESTROY_CAR: