mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build after fbbe247114
This commit is contained in:
@@ -425,7 +425,7 @@ namespace LuaGlobalFunctions
|
|||||||
|
|
||||||
std::string name = temp->Name1;
|
std::string name = temp->Name1;
|
||||||
if (ItemLocale const* il = eObjectMgr->GetItemLocale(entry))
|
if (ItemLocale const* il = eObjectMgr->GetItemLocale(entry))
|
||||||
ObjectMgr::GetLocaleString(il->Name, locale, name);
|
ObjectMgr::GetLocaleString(il->Name, static_cast<LocaleConstant>(locale), name);
|
||||||
|
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << "|c" << std::hex << ItemQualityColors[temp->Quality] << std::dec <<
|
oss << "|c" << std::hex << ItemQualityColors[temp->Quality] << std::dec <<
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ namespace LuaItem
|
|||||||
const ItemTemplate* temp = item->GetTemplate();
|
const ItemTemplate* temp = item->GetTemplate();
|
||||||
std::string name = temp->Name1;
|
std::string name = temp->Name1;
|
||||||
if (ItemLocale const* il = eObjectMgr->GetItemLocale(temp->ItemId))
|
if (ItemLocale const* il = eObjectMgr->GetItemLocale(temp->ItemId))
|
||||||
ObjectMgr::GetLocaleString(il->Name, locale, name);
|
ObjectMgr::GetLocaleString(il->Name, static_cast<LocaleConstant>(locale), name);
|
||||||
|
|
||||||
#ifndef CLASSIC
|
#ifndef CLASSIC
|
||||||
if (int32 itemRandPropId = item->GetItemRandomPropertyId())
|
if (int32 itemRandPropId = item->GetItemRandomPropertyId())
|
||||||
|
|||||||
Reference in New Issue
Block a user