1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

Return min instead of max for itemlevel

This commit is contained in:
Mordred 2018-11-01 15:19:07 +01:00
parent 208d39ad62
commit 2a6246f490

View file

@ -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 );
}