Scripts: Removed CAST_SUM define

This commit is contained in:
Shauren
2011-05-25 15:55:14 +02:00
parent 0ea721e25a
commit 64adce7b8b
13 changed files with 96 additions and 91 deletions
@@ -62,7 +62,7 @@ public:
{
Player *plr = NULL;
if (me->isSummon())
if (Unit *summoner = CAST_SUM(me)->GetSummoner())
if (Unit *summoner = me->ToTempSummon()->GetSummoner())
if (summoner->GetTypeId() == TYPEID_PLAYER)
plr = CAST_PLR(summoner);