summaryrefslogtreecommitdiffstats
path: root/src/control/Script2.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-14 21:21:43 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-14 21:21:43 +0100
commit8b6bcef4b79c145c13f96c92bc2693e6e586631a (patch)
tree660b68fac5b6920393f3bb564702c9e2b0bce191 /src/control/Script2.cpp
parentfix (diff)
parentincoming "fuck" commit (diff)
downloadre3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar.gz
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar.bz2
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar.lz
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar.xz
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.tar.zst
re3-8b6bcef4b79c145c13f96c92bc2693e6e586631a.zip
Diffstat (limited to 'src/control/Script2.cpp')
-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 5cac2bfd..9ef24751 100644
--- a/src/control/Script2.cpp
+++ b/src/control/Script2.cpp
@@ -1349,9 +1349,9 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 2);
CPed* pPed = CPools::GetPedPool()->GetAt(GET_INTEGER_PARAM(0));
script_assert(pPed);
- CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(GET_INTEGER_PARAM(1));
+ CObject* pObject = CPools::GetObjectPool()->GetAt(GET_INTEGER_PARAM(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: