bug fixes

This commit is contained in:
Light2
2013-12-12 17:24:26 +01:00
parent 140848e3ab
commit 512fbfec72
7 changed files with 25 additions and 23 deletions
+4 -2
View File
@@ -211,11 +211,13 @@ public class GroupService implements INetworkDispatch {
if(creature.getGroupId() == 0)
return;
GroupObject group = (GroupObject) core.objectService.getObject(creature.getGroupId());
SWGObject object = core.objectService.getObject(creature.getGroupId());
if(group == null)
if(object == null || !(object instanceof GroupObject))
return;
GroupObject group = (GroupObject) object;
List<SWGObject> memberList = new ArrayList<SWGObject>(group.getMemberList());
if(group.getGroupLeader() != creature && group.getMemberList().size() > 2) {