*Use dynamic cast for script cast.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-04 16:36:33 -05:00
parent 93a23a7b40
commit 8fa2fa0fdb
56 changed files with 202 additions and 193 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ void ScriptedAI::DoTeleportPlayer(Unit* pUnit, float x, float y, float z, float
return;
}
((Player*)pUnit)->TeleportTo(pUnit->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
CAST_PLR(pUnit)->TeleportTo(pUnit->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
}
void ScriptedAI::DoTeleportAll(float x, float y, float z, float o)