1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00

Return min instead of max for itemlevel

This commit is contained in:
Mordred 2018-11-01 15:19:07 +01:00
parent 10a38756c3
commit d51cb0740f

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