Sfoglia il codice sorgente

Fixed invalid casting to int, thanks [DeCo]

_DS_ 15 anni fa
parent
commit
d85b74b1cc

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

@@ -5955,7 +5955,7 @@ public final class L2PcInstance extends L2Playable
 		if (getExpBeforeDeath() > 0)
 		{
 			// Restore the specified % of lost experience.
-			getStat().addExp((int)Math.round((getExpBeforeDeath() - getExp()) * restorePercent / 100));
+			getStat().addExp(Math.round((getExpBeforeDeath() - getExp()) * restorePercent / 100));
 			setExpBeforeDeath(0);
 		}
 	}