aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-06 13:27:42 -0500
committermegamage <none@none>2009-04-06 13:27:42 -0500
commite8866340ce2cb717486c8def489ddc9d3046a0cc (patch)
treeba1fde0208396dc62a3e0bcb55d298ed8bdbc4e9 /src/game/Level2.cpp
parent69657cad7c385341de7da6b1d3ec1e738b6e2555 (diff)
*CreatureGroups fixed and improoved. By TrullyONE
- Multimap support for instances added. - Removed redundant group checks. - New movement rules (bool group formed/dismissed added). - uint32 Creature::GroupID replaced with CreatureGroup pointer. --HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index d1f4c864f24..823c8b8e9ee 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -4569,9 +4569,9 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args)
}
uint32 lowguid = pCreature->GetDBTableGUIDLow();
- if(pCreature->GetFormationID())
+ if(pCreature->GetFormation())
{
- PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormationID());
+ PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormation()->GetId());
return false;
}