diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index b4c31b33a..f7a95625f 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1697,8 +1697,8 @@ void LocalPlayer::processEvent(Channels channel, const int id = event.getInt("id"); if (id == Net::getPlayerHandler()->getJobLocation()) { - const std::pair<int, int> exp = PlayerInfo::getStatExperience( - static_cast<PlayerInfo::Attribute>(id)); + const std::pair<int, int> exp + = PlayerInfo::getStatExperience(id); if (event.getInt("oldValue1") > exp.first || !event.getInt("oldValue2")) { @@ -3272,10 +3272,8 @@ void LocalPlayer::tryMagic(const std::string &spell, const int baseMagic, if (!chatWindow) return; - if (PlayerInfo::getStatEffective(static_cast<PlayerInfo::Attribute>( - 340)) >= baseMagic - && PlayerInfo::getStatEffective(static_cast<PlayerInfo::Attribute>( - 342)) >= schoolMagic) + if (PlayerInfo::getStatEffective(340) >= baseMagic + && PlayerInfo::getStatEffective(342) >= schoolMagic) { if (PlayerInfo::getAttribute(PlayerInfo::MP) >= mana) { |