mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 15:46:24 +00:00
fix(Core): Crashfix on vehicle uninstall. (#13036)
This commit is contained in:
@@ -109,8 +109,10 @@ void Vehicle::Uninstall()
|
||||
LOG_DEBUG("vehicles", "Vehicle::Uninstall {}", _me->GetGUID().ToString());
|
||||
RemoveAllPassengers();
|
||||
|
||||
if (GetBase()->GetTypeId() == TYPEID_UNIT)
|
||||
if (_me && _me->GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
sScriptMgr->OnUninstall(this);
|
||||
}
|
||||
}
|
||||
|
||||
void Vehicle::Reset(bool evading /*= false*/)
|
||||
|
||||
Reference in New Issue
Block a user