Skip to content

Commit 3723561

Browse files
committed
Fix schoolMask unused variable error in AddThreat for azerothcore.
1 parent dc63f92 commit 3723561

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

methods/AzerothCore/CreatureMethods.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ namespace LuaCreature
789789
{
790790
Unit* victim = E->CHECKOBJ<Unit>(2);
791791
float threat = E->CHECKVAL<float>(3, true);
792-
float schoolMask = E->CHECKVAL<uint32>(4, 0);
792+
//schoolMask is unused but other cores support it so we still reserve the number.
793+
//float schoolMask = E->CHECKVAL<uint32>(4, 0);
793794
uint32 spell = E->CHECKVAL<uint32>(5, 0);
794795

795796
creature->GetThreatMgr().AddThreat(victim, threat, spell ? sSpellMgr->GetSpellInfo(spell) : NULL);

0 commit comments

Comments
 (0)