diff options
author | Anubisss <none@none> | 2010-04-01 19:09:56 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2010-04-01 19:09:56 +0200 |
commit | f78b766705104444f695a265bce712d59a22cbb3 (patch) | |
tree | 445d2eaeaa60d4f578fde6b7cbbfd148ea1c6fd8 /src/scripts/northrend/zuldrak.cpp | |
parent | 9f544d2f934420be5c6ce0bbe3db5d84153c9d61 (diff) |
Use ToTempSummon() in a case instead of a C style cast.
Use correct Unit::GetCreature() instead of Unit::GetUnit() with casting the object to Creature pointer.
Remove some usless casts.
Fix a possible crash in pyrewood_ambushAI.
TODO: Remove ugly cast macros(like CAST_PLR(), CAST_CRE()) from scripts and use the correct ToX() functions(like ToPlayer(), ToCreature()).
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/northrend/zuldrak.cpp')
-rw-r--r-- | src/scripts/northrend/zuldrak.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/northrend/zuldrak.cpp b/src/scripts/northrend/zuldrak.cpp index 6b43c7bf430..359a7389f3a 100644 --- a/src/scripts/northrend/zuldrak.cpp +++ b/src/scripts/northrend/zuldrak.cpp @@ -277,7 +277,7 @@ struct npc_gurgthockAI : public ScriptedAI for(std::list<uint64>::iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) { - if (Creature* pTemp = (Creature*)Unit::GetUnit(*m_creature, *itr)) + if (Creature* pTemp = Unit::GetCreature(*m_creature, *itr)) if (pTemp) pTemp->RemoveFromWorld(); } |