diff --git a/CreatureMethods.h b/CreatureMethods.h index 3843677..36c2ccf 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -593,7 +593,7 @@ namespace LuaCreature else Eluna::Push(L, 0); #elif AZEROTHCORE - if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spell)) + if (sSpellMgr->GetSpellInfo(spell)) Eluna::Push(L, creature->GetSpellCooldown(spell)); else Eluna::Push(L, 0); diff --git a/GroupMethods.h b/GroupMethods.h index 38871f0..3fedbc8 100644 --- a/GroupMethods.h +++ b/GroupMethods.h @@ -135,7 +135,7 @@ namespace LuaGroup return 1; } - if (Group* invitedgroup = player->GetGroupInvite()) + if (player->GetGroupInvite()) player->UninviteFromGroup(); #if defined TRINITY || AZEROTHCORE diff --git a/PlayerMethods.h b/PlayerMethods.h index 783bee2..c3a9a65 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -3986,9 +3986,9 @@ namespace LuaPlayer if (player->GetGroup() || invited->GetGroup()) return 0; - if (Group* invitedgroup = player->GetGroupInvite()) + if (player->GetGroupInvite()) player->UninviteFromGroup(); - if (Group* invitedgroup = invited->GetGroupInvite()) + if (invited->GetGroupInvite()) invited->UninviteFromGroup(); // Try create new group