JIV преди 15 години
родител
ревизия
7b93b63482
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

+ 3 - 2
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -4425,7 +4425,8 @@ public final class L2PcInstance extends L2Playable
 		final boolean needCpUpdate = needCpUpdate(352);
 		final boolean needHpUpdate = needHpUpdate(352);
 		// Check if a party is in progress and party window update is usefull
-		if (isInParty()
+		L2Party party = _party;
+		if (party != null
 				&& (needCpUpdate
 						|| needHpUpdate
 						|| needMpUpdate(352)))
@@ -4434,7 +4435,7 @@ public final class L2PcInstance extends L2Playable
 				_log.fine("Send status for party window of " + getObjectId() + "(" + getName() + ") to his party. CP: " + getCurrentCp() + " HP: " + getCurrentHp() + " MP: " + getCurrentMp());
 			// Send the Server->Client packet PartySmallWindowUpdate with current HP, MP and Level to all other L2PcInstance of the Party
 			PartySmallWindowUpdate update = new PartySmallWindowUpdate(this);
-			getParty().broadcastToPartyMembers(this, update);
+			party.broadcastToPartyMembers(this, update);
 		}
 
         if (isInOlympiadMode()