Core/Spells: Fixed typo in loading serverside spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/b4b58c563b0848608f20058ea84faa000d04e778)
This commit is contained in:
hondacrx
2022-02-25 13:06:21 -05:00
parent 80a739712b
commit 163e22c308
+1 -1
View File
@@ -2497,7 +2497,7 @@ namespace Game.Entities
do do
{ {
uint spellId = spellsResult.Read<uint>(0); uint spellId = spellsResult.Read<uint>(0);
Difficulty difficulty = (Difficulty)spellsResult.Read<uint>(2); Difficulty difficulty = (Difficulty)spellsResult.Read<uint>(1);
if (CliDB.SpellNameStorage.HasRecord(spellId)) if (CliDB.SpellNameStorage.HasRecord(spellId))
{ {
Log.outError(LogFilter.Sql, $"Serverside spell {spellId} difficulty {difficulty} is already loaded from file. Overriding existing spells is not allowed."); Log.outError(LogFilter.Sql, $"Serverside spell {spellId} difficulty {difficulty} is already loaded from file. Overriding existing spells is not allowed.");