_DS_ 15 年之前
父節點
當前提交
feb7bdbfdc
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      L2_GameServer/java/net/sf/l2j/gameserver/instancemanager/InstanceManager.java

+ 4 - 0
L2_GameServer/java/net/sf/l2j/gameserver/instancemanager/InstanceManager.java

@@ -55,6 +55,8 @@ public class InstanceManager
 	{
 		for (InstanceWorld temp : _instanceWorlds.values())
 		{
+			if (temp == null)
+				continue;
 			// check if the player have a World Instance where he/she is allowed to enter
 			if (temp.allowed.contains(player.getObjectId()))
 				return temp;
@@ -117,6 +119,8 @@ public class InstanceManager
 	{
 		for (Instance temp : _instanceList.values())
 		{
+			if (temp == null)
+				continue;
 			// check if the player is in any active instance
 			if (temp.containsPlayer(objectId))
 				return temp.getId();