Compile fix

This commit is contained in:
Aokromes committed 2016-10-24 19:28:03 +02:00
1 parent 6edf08c764
commit 59053a099b
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -118,12 +118,12 @@ void Channel::GetChannelName(std::string& channelName, uint32 channelId, LocaleC
if (!(channelEntry->flags & CHANNEL_DBC_FLAG_GLOBAL))
{
if (channelEntry->flags & CHANNEL_DBC_FLAG_CITY_ONLY)
channelName = Trinity::StringFormat(channelEntry->pattern[locale], sObjectMgr->GetTrinityString(LANG_CHANNEL_CITY, locale));
channelName = Trinity::StringFormat(channelEntry->pattern, sObjectMgr->GetTrinityString(LANG_CHANNEL_CITY, locale));
else
channelName = Trinity::StringFormat(channelEntry->pattern[locale], ASSERT_NOTNULL(zoneEntry)->area_name[locale]);
channelName = Trinity::StringFormat(channelEntry->pattern, ASSERT_NOTNULL(zoneEntry)->area_name[locale]);
}
else
channelName = channelEntry->pattern[locale];
channelName = channelEntry->pattern;
}
}
+2 -2
View File
@@ -76,7 +76,7 @@ public:
if (!entry)
continue;
if (strstr(entry->pattern[handler->GetSessionDbcLocale()], channelStr))
if (strstr(entry->pattern, channelStr))
{
channelId = i;
break;
@@ -90,7 +90,7 @@ public:
if (!entry)
continue;
if (strstr(entry->area_name[handler->GetSessionDbcLocale()], channelStr))
if (strstr(entry->area_name, channelStr))
{
zoneEntry = entry;
break;