summaryrefslogtreecommitdiff
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-29 19:32:22 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-29 19:32:22 +0300
commit453f8c05a4fc2ef03ba1d4f7bac43ba871c52fbd (patch)
treeb1586ab27437633e49c795c2e1277f6ca4877cfa /src/audio/AudioLogic.cpp
parente865e65955838f3a5901c737263177797c6eebfa (diff)
script revision p1
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r--src/audio/AudioLogic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index aa69a949..9ca9599d 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2879,10 +2879,10 @@ cAudioManager::ProcessCarBombTick(cVehicleParams& params)
if (params.m_pVehicle->bEngineOn) {
switch (params.m_VehicleType) {
case VEHICLE_TYPE_CAR:
- bombType = params.m_pVehicle->m_bombType;
+ bombType = ((CAutomobile*)params.m_pVehicle)->m_bombType;
break;
case VEHICLE_TYPE_BIKE:
- bombType = params.m_pVehicle->m_bombType;
+ bombType = ((CBike*)params.m_pVehicle)->m_bombType;
break;
default:
debug("\n * AUDIOLOG: ProcessCarBombTick() Unsupported vehicle type %d * \n", params.m_VehicleType);