summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-22 13:35:46 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-22 13:35:46 +0100
commit3481e431c9856f50463ca9aff24da7a51da94eb7 (patch)
tree5761efccfb0b5aed89af3702031633923606b68a /src/control/Script.cpp
parentscript 1000-1154 (diff)
downloadre3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar.gz
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar.bz2
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar.lz
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar.xz
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.tar.zst
re3-3481e431c9856f50463ca9aff24da7a51da94eb7.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index a43a86a6..d31958f3 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9006,9 +9006,9 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
case COMMAND_UPDATE_BOAT_FOAM_ANIMATION:
{
CollectParameters(&m_nIp, 1);
- CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
- assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT);
- CSpecialParticleStuff::UpdateBoatFoamAnimation(&pVehicle->GetMatrix());
+ CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
+ assert(pObject);
+ CSpecialParticleStuff::UpdateBoatFoamAnimation(&pObject->GetMatrix());
return 0;
}
case COMMAND_SET_MUSIC_DOES_FADE: