aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorihm-tswow <76849026+ihm-tswow@users.noreply.github.com>2021-10-24 15:56:01 +0000
committerShauren <shauren.trinity@gmail.com>2022-03-20 19:39:59 +0100
commit59889d926d7c3d4a57afa357f25f69c0c8dea7bb (patch)
treea14a13c82d19c941aabdbcac84a1e180d1f38184 /src
parent6935bffd3461456fea9afc19dad8f21a2f456b8b (diff)
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 c946370c5f03c53c4f9bb3d147abcc6b37f4f36d)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_learn.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp
index 48dd1b6cdec..837245a290c 100644
--- a/src/server/scripts/Commands/cs_learn.cpp
+++ b/src/server/scripts/Commands/cs_learn.cpp
@@ -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;