From 9378a9cf211021c7a285026307f3a5f03af430dd Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 11 Apr 2009 13:42:34 -0500 Subject: *Add function GetPlayer and GetCreature for scripts. Please try to not use GetUnit in the future. --HG-- branch : trunk --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Creature.cpp') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 4a4415a8e08..8e1be5145c4 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -124,7 +124,7 @@ bool AssistDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { while (!m_assistants.empty()) { - Creature* assistant = (Creature*)Unit::GetUnit(m_owner, *m_assistants.begin()); + Creature* assistant = Unit::GetCreature(m_owner, *m_assistants.begin()); m_assistants.pop_front(); if (assistant && assistant->CanAssistTo(&m_owner, victim)) -- cgit v1.2.3