aboutsummaryrefslogtreecommitdiff
path: root/src/game/GroupHandler.cpp
diff options
context:
space:
mode:
authorKingPin <none@none>2008-10-29 17:09:32 -0500
committerKingPin <none@none>2008-10-29 17:09:32 -0500
commitce2d63e4aeddca0781c2eef764a6df0154f561fc (patch)
tree1b4aeb6a43215b64214e044c791c0324ed0af467 /src/game/GroupHandler.cpp
parentfebb2d61472bbce18e008967dad04d2eaaa063cf (diff)
[svn] * Added npc follow, waterwalk, repairitems commands. Patch by dythzer
* Prevent adding more than 5 people to raid - Apoc * fixed typo from one of our previous commits. * Fixed two strings in core, thanx to warhead for patch. --HG-- branch : trunk
Diffstat (limited to 'src/game/GroupHandler.cpp')
-rw-r--r--src/game/GroupHandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/GroupHandler.cpp b/src/game/GroupHandler.cpp
index 90281c15ed7..5f384aa1d8d 100644
--- a/src/game/GroupHandler.cpp
+++ b/src/game/GroupHandler.cpp
@@ -551,6 +551,9 @@ void WorldSession::HandleGroupChangeSubGroupOpcode( WorldPacket & recv_data )
/** error handling **/
if(!group->IsLeader(GetPlayer()->GetGUID()) && !group->IsAssistant(GetPlayer()->GetGUID()))
return;
+
+ if (!group->HasFreeSlotSubGroup(groupNr))
+ return;
/********************/
// everything's fine, do it