From c389e99ca8e2c0c55022b61b0671ebdbf518dbe4 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 20 Jul 2021 22:33:34 +0000 Subject: [PATCH] Fixed clan exp table out of bounds exception. --- .../java/org/l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../java/org/l2jmobius/gameserver/model/clan/Clan.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/clan/Clan.java index 077b60a1d7..8a343c989a 100644 --- a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -3104,7 +3104,7 @@ public class Clan implements IIdentifiable, INamable _exp += value; broadcastToOnlineMembers(new ExPledgeV3Info(_exp, getRank(), getNotice(), isNoticeEnabled())); - if (EXP_TABLE[getLevel()] <= _exp) + if ((EXP_TABLE[getLevel() - 1]) <= _exp) { changeLevel(_level + 1); } diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java index 077b60a1d7..8a343c989a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -3104,7 +3104,7 @@ public class Clan implements IIdentifiable, INamable _exp += value; broadcastToOnlineMembers(new ExPledgeV3Info(_exp, getRank(), getNotice(), isNoticeEnabled())); - if (EXP_TABLE[getLevel()] <= _exp) + if ((EXP_TABLE[getLevel() - 1]) <= _exp) { changeLevel(_level + 1); }