summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2021-01-14 22:06:43 +0100
committerFilip Gawin <filip.gawin@zoho.com>2021-01-14 22:06:43 +0100
commita0a88b466328cf838570e816a0b212876d882f8e (patch)
treec5de3d106e36ac1c2a3a5786c0ab443c101d5e1b /src
parentMore checks before autolinking (diff)
parentincoming "fuck" commit (diff)
downloadre3-a0a88b466328cf838570e816a0b212876d882f8e.tar
re3-a0a88b466328cf838570e816a0b212876d882f8e.tar.gz
re3-a0a88b466328cf838570e816a0b212876d882f8e.tar.bz2
re3-a0a88b466328cf838570e816a0b212876d882f8e.tar.lz
re3-a0a88b466328cf838570e816a0b212876d882f8e.tar.xz
re3-a0a88b466328cf838570e816a0b212876d882f8e.tar.zst
re3-a0a88b466328cf838570e816a0b212876d882f8e.zip
Diffstat (limited to 'src')
-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: