Core/Players: Fix deleting favorite spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/39e9a5e193339694f8990a9e2d49c43e98dce820)
This commit is contained in:
Hondacrx
2025-08-12 21:53:41 -04:00
parent a18151b9ef
commit b021781fde
+2 -2
View File
@@ -1948,8 +1948,8 @@ namespace Game.Entities
} }
stmt = CharacterDatabase.GetPreparedStatement(CharStatements.DEL_CHAR_SPELL_FAVORITE); stmt = CharacterDatabase.GetPreparedStatement(CharStatements.DEL_CHAR_SPELL_FAVORITE);
stmt.AddValue(0, id); stmt.AddValue(0, GetGUID().GetCounter());
stmt.AddValue(1, GetGUID().GetCounter()); stmt.AddValue(1, id);
trans.Append(stmt); trans.Append(stmt);
if (spell.Favorite) if (spell.Favorite)