From 2a6246f490486925e76c2cfc96df6e4b33d6d57b Mon Sep 17 00:00:00 2001 From: Mordred Date: Thu, 1 Nov 2018 15:19:07 +0100 Subject: [PATCH] Return min instead of max for itemlevel --- src/servers/sapphire_zone/Actor/PlayerInventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/sapphire_zone/Actor/PlayerInventory.cpp b/src/servers/sapphire_zone/Actor/PlayerInventory.cpp index 812a2f1e..c7cf8ea5 100644 --- a/src/servers/sapphire_zone/Actor/PlayerInventory.cpp +++ b/src/servers/sapphire_zone/Actor/PlayerInventory.cpp @@ -848,7 +848,7 @@ uint16_t Core::Entity::Player::calculateEquippedGearItemLevel() it++; } - return std::max( static_cast< int32_t >( iLvlResult / 13 ), 9999 ); + return std::min( static_cast< int32_t >( iLvlResult / 13 ), 9999 ); }