diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Vehicle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp index d54bd04dcec..3398030e735 100644 --- a/src/game/Vehicle.cpp +++ b/src/game/Vehicle.cpp @@ -144,6 +144,9 @@ void Vehicle::Update(uint32 diff) //310 if(getPowerType() == POWER_ENERGY) // m_vehicleInfo->36 ModifyPower(POWER_ENERGY, 100); + + if(m_deathState == DEAD && !GetDBTableGUIDLow()) + Dismiss(); } bool Vehicle::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team, float x, float y, float z, float o, const CreatureData * data) |