aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/3.3.5/2021_09_28_00_world.sql3
-rw-r--r--src/server/game/Spells/SpellMgr.cpp4
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;