diff --git a/GlobalMethods.h b/GlobalMethods.h index 1bce4d4..d09fd90 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -425,7 +425,7 @@ namespace LuaGlobalFunctions std::string name = temp->Name1; if (ItemLocale const* il = eObjectMgr->GetItemLocale(entry)) - ObjectMgr::GetLocaleString(il->Name, locale, name); + ObjectMgr::GetLocaleString(il->Name, static_cast(locale), name); std::ostringstream oss; oss << "|c" << std::hex << ItemQualityColors[temp->Quality] << std::dec << diff --git a/ItemMethods.h b/ItemMethods.h index 4e5b2d6..1ee7017 100644 --- a/ItemMethods.h +++ b/ItemMethods.h @@ -266,7 +266,7 @@ namespace LuaItem const ItemTemplate* temp = item->GetTemplate(); std::string name = temp->Name1; if (ItemLocale const* il = eObjectMgr->GetItemLocale(temp->ItemId)) - ObjectMgr::GetLocaleString(il->Name, locale, name); + ObjectMgr::GetLocaleString(il->Name, static_cast(locale), name); #ifndef CLASSIC if (int32 itemRandPropId = item->GetItemRandomPropertyId())