From 128301573cd1ab6ca2457970cf2d51e01ec9f726 Mon Sep 17 00:00:00 2001 From: Niam5 Date: Sat, 16 Nov 2024 17:59:46 -0800 Subject: [PATCH] Change Item Locale getter to different function --- methods/CMangos/ItemMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods/CMangos/ItemMethods.h b/methods/CMangos/ItemMethods.h index 80264b2f58..90689bf5f4 100644 --- a/methods/CMangos/ItemMethods.h +++ b/methods/CMangos/ItemMethods.h @@ -257,7 +257,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, static_cast(locale), name); + eObjectMgr->GetItemLocaleStrings(temp->ItemId, locale, &name); #if ELUNA_EXPANSION >= EXP_TBC if (int32 itemRandPropId = item->GetItemRandomPropertyId())