From 39afb1d3b740c417a9640bfb176598c41c4300be Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 19 Apr 2017 20:49:04 +0300 Subject: [PATCH] Fix TC build after https://github.com/TrinityCore/TrinityCore/commit/fbbe247114d092be1d20768419608bfa9cc57608 --- GlobalMethods.h | 2 +- ItemMethods.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())