aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobinsch <robinsch@users.noreply.github.com>2021-09-28 11:46:34 +0200
committerGitHub <noreply@github.com>2021-09-28 11:46:34 +0200
commitf30510566b1a3500d8c034f12ef0c0a662e193e9 (patch)
tree560793ad8157a242aa5d31f5360efa05f6d51b8b /src
parent0a2fca1aed4f2926c73f906769ff92918f7e2dbd (diff)
Core/Spell: Allow inserting spell ids greater than 65535 into spell_learn_spell (#26958)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 1a7868cdddd..404b9d4fac6 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -1098,10 +1098,10 @@ void SpellMgr::LoadSpellLearnSpells()
{
Field* fields = result->Fetch();
- uint32 spell_id = fields[0].GetUInt16();
+ uint32 spell_id = fields[0].GetUInt32();
SpellLearnSpellNode node;
- node.spell = fields[1].GetUInt16();
+ node.spell = fields[1].GetUInt32();
node.active = fields[2].GetBool();
node.autoLearned = false;