Skip to content

Commit

Permalink
Change Item Locale getter to different function
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Nov 17, 2024
1 parent 9e3dd7c commit 1283015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods/CMangos/ItemMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<LocaleConstant>(locale), name);
eObjectMgr->GetItemLocaleStrings(temp->ItemId, locale, &name);

#if ELUNA_EXPANSION >= EXP_TBC
if (int32 itemRandPropId = item->GetItemRandomPropertyId())
Expand Down

0 comments on commit 1283015

Please sign in to comment.