[11015] Prevent crash at player far teleport landing to nonexisten battleground instance.

Teleport back in like case or to homebind in bad case.
This commit is contained in:
VladimirMangos 2011-01-16 00:28:10 +03:00
parent 3de0f99f59
commit 0c19c2c6a2
4 changed files with 39 additions and 9 deletions

View file

@ -2756,7 +2756,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (totem && apply)
((Player*)target)->GetCamera().SetView(totem);
else
((Player*)target)->GetCamera().ResetView(totem);
((Player*)target)->GetCamera().ResetView();
return;
}