Fix GCC compile

This commit is contained in:
silviu20092
2024-11-17 22:09:56 +02:00
parent 29d8231f3b
commit c8610b6999

View File

@@ -2,6 +2,7 @@
* Credits: silviu20092
*/
#include <cmath>
#include "DatabaseEnv.h"
#include "Player.h"
#include "Chat.h"
@@ -296,7 +297,7 @@ uint32 ItemReforge::CalculateReforgePct(int32 value) const
if (value <= 0)
return 0;
return (uint32)(std::floorf((float)value * (GetPercentage() / 100.0f)));
return (uint32)(std::floor((float)value * (GetPercentage() / 100.0f)));
}
std::vector<_ItemStat> ItemReforge::LoadItemStatInfo(const Item* item, bool onlyReforgeable) const