diff options
author | robinsch <robinsch@users.noreply.github.com> | 2021-09-28 11:46:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 11:46:34 +0200 |
commit | f30510566b1a3500d8c034f12ef0c0a662e193e9 (patch) | |
tree | 560793ad8157a242aa5d31f5360efa05f6d51b8b | |
parent | 0a2fca1aed4f2926c73f906769ff92918f7e2dbd (diff) |
Core/Spell: Allow inserting spell ids greater than 65535 into spell_learn_spell (#26958)
-rw-r--r-- | sql/updates/world/3.3.5/2021_09_28_00_world.sql | 3 | ||||
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sql/updates/world/3.3.5/2021_09_28_00_world.sql b/sql/updates/world/3.3.5/2021_09_28_00_world.sql new file mode 100644 index 00000000000..dea8b852c66 --- /dev/null +++ b/sql/updates/world/3.3.5/2021_09_28_00_world.sql @@ -0,0 +1,3 @@ +ALTER TABLE `spell_learn_spell` + MODIFY `entry` int(10) UNSIGNED NOT NULL DEFAULT 0 FIRST, + MODIFY `SpellID` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `entry`; 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; |