Browse Source

BETA: Fixing little typo from 5565 also fix for ticket #6306
* Reported by: mjaniko, Micr0

Rumen Nikiforov 12 năm trước cách đây
mục cha
commit
ea8b5796b1

+ 4 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/entity/Instance.java

@@ -180,7 +180,10 @@ public class Instance
 	 */
 	public void removePlayer(int objectId)
 	{
-		_players.remove(objectId);
+		if (_players.contains(objectId))
+		{
+			_players.remove(_players.indexOf(objectId));
+		}
 		
 		if (_players.isEmpty() && (_emptyDestroyTime >= 0))
 		{