Explorar el Código

Fix Clan Hall Sieges NPE when siege end
Reported by: Driad

Zealar hace 10 años
padre
commit
d073864023

+ 4 - 1
L2J_Server/java/com/l2jserver/gameserver/model/entity/clanhall/ClanHallSiegeEngine.java

@@ -201,7 +201,10 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
 				if (guard != null)
 				{
 					guard.stopRespawn();
-					guard.getLastSpawn().deleteMe();
+					if (guard.getLastSpawn() != null)
+					{
+						guard.getLastSpawn().deleteMe();
+					}
 				}
 			}
 		}