diff --git a/src/strategy/values/SpellIdValue.cpp b/src/strategy/values/SpellIdValue.cpp index 0e7eef38..beb445f8 100644 --- a/src/strategy/values/SpellIdValue.cpp +++ b/src/strategy/values/SpellIdValue.cpp @@ -6,6 +6,7 @@ #include "ChatHelper.h" #include "Playerbots.h" #include "Vehicle.h" +#include "World.h" SpellIdValue::SpellIdValue(PlayerbotAI* botAI) : CalculatedValue(botAI, "spell id", 20 * 1000) { @@ -34,7 +35,7 @@ uint32 SpellIdValue::Calculate() char firstSymbol = tolower(namepart[0]); int spellLength = wnamepart.length(); - LocaleConstant loc = bot->GetSession()->GetSessionDbcLocale(); + LocaleConstant loc = LOCALE_enUS; std::set spellIds; for (PlayerSpellMap::iterator itr = bot->GetSpellMap().begin(); itr != bot->GetSpellMap().end(); ++itr)