From 5d057b01eb5c5b36781498f134fae5ff8fc5e3a6 Mon Sep 17 00:00:00 2001 From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com> Date: Fri, 5 Apr 2019 08:52:16 +0000 Subject: [PATCH] fix some compiler warnings about unused variables, part 2 --- CreatureMethods.h | 2 +- GroupMethods.h | 2 +- PlayerMethods.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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