From c8610b69998789d8b0f685eceb3d0736319ec813 Mon Sep 17 00:00:00 2001 From: silviu20092 Date: Sun, 17 Nov 2024 22:09:56 +0200 Subject: [PATCH] Fix GCC compile --- mod-reforging/src/item_reforge.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod-reforging/src/item_reforge.cpp b/mod-reforging/src/item_reforge.cpp index 2d48c8d..b8fd8cf 100644 --- a/mod-reforging/src/item_reforge.cpp +++ b/mod-reforging/src/item_reforge.cpp @@ -2,6 +2,7 @@ * Credits: silviu20092 */ +#include #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