diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-22 13:35:46 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-22 13:35:46 +0100 |
commit | 3481e431c9856f50463ca9aff24da7a51da94eb7 (patch) | |
tree | 5761efccfb0b5aed89af3702031633923606b68a /src/control | |
parent | script 1000-1154 (diff) | |
download | re3-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')
-rw-r--r-- | src/control/Script.cpp | 6 |
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: |