Core/Transports: Fixed crash happening during teleporting transports

Closes #11793
This commit is contained in:
Shauren committed 2014-06-13 11:16:17 +02:00
1 parent c75b7942a8
commit 5804372042
12 files changed
+71 -98

No files matched your search

+1 -6
View File
@@ -13555,12 +13555,7 @@ void Unit::CleanupsBeforeDelete(bool finalCleanup)
{
CleanupBeforeRemoveFromMap(finalCleanup);
if (GetTransport())
{
GetTransport()->RemovePassenger(this);
SetTransport(NULL);
m_movementInfo.transport.Reset();
}
WorldObject::CleanupsBeforeDelete(finalCleanup);
}
void Unit::UpdateCharmAI()