Răsfoiți Sursa

Another NPE in bosszone fix

_DS_ 15 ani în urmă
părinte
comite
3d3a4f41dc

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java

@@ -201,7 +201,7 @@ public class L2BossZone extends L2ZoneType
 						for (int i = 0; i < _raidList.size(); i++)
 						{
 							L2Attackable raid = (L2Attackable) _raidList.get(i);
-							if (raid == null || raid.isDead())
+							if (raid == null || raid.getSpawn() == null || raid.isDead())
 								continue;
 							if (!raid.isInsideRadius(raid.getSpawn().getLocx(), raid.getSpawn().getLocy(), 150, false))
 								raid.returnHome();