Scripts/Commands: fix .learn all recipes (#27153)

if client had same locale as server, the command didn't work (should've been != and not ==).  Furthermore, server dbcs only have the server locale for these, and they might or might not match up with the client. only downside of removing the check entirely is possibility of mixups if two locales have overlapping names for different skills. I highly doubt a single such instance exists.

(cherry picked from commit c946370c5f)
This commit is contained in:
ihm-tswow
2021-10-24 15:56:01 +00:00
committed by Shauren
parent 6935bffd34
commit 59889d926d

View File

@@ -393,9 +393,6 @@ public:
LocaleConstant locale = LOCALE_enUS;
for (; locale < TOTAL_LOCALES; locale = LocaleConstant(locale + 1))
{
if (locale == handler->GetSessionDbcLocale())
continue;
name = skillInfo->DisplayName[locale];
if (!name || !*name)
continue;