mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge pull request #289 from Stoabrogga/warnings_pt2
fix some compiler warnings about unused variables, part 2
This commit is contained in:
@@ -593,7 +593,7 @@ namespace LuaCreature
|
|||||||
else
|
else
|
||||||
Eluna::Push(L, 0);
|
Eluna::Push(L, 0);
|
||||||
#elif AZEROTHCORE
|
#elif AZEROTHCORE
|
||||||
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spell))
|
if (sSpellMgr->GetSpellInfo(spell))
|
||||||
Eluna::Push(L, creature->GetSpellCooldown(spell));
|
Eluna::Push(L, creature->GetSpellCooldown(spell));
|
||||||
else
|
else
|
||||||
Eluna::Push(L, 0);
|
Eluna::Push(L, 0);
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ namespace LuaGroup
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Group* invitedgroup = player->GetGroupInvite())
|
if (player->GetGroupInvite())
|
||||||
player->UninviteFromGroup();
|
player->UninviteFromGroup();
|
||||||
|
|
||||||
#if defined TRINITY || AZEROTHCORE
|
#if defined TRINITY || AZEROTHCORE
|
||||||
|
|||||||
@@ -3986,9 +3986,9 @@ namespace LuaPlayer
|
|||||||
if (player->GetGroup() || invited->GetGroup())
|
if (player->GetGroup() || invited->GetGroup())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (Group* invitedgroup = player->GetGroupInvite())
|
if (player->GetGroupInvite())
|
||||||
player->UninviteFromGroup();
|
player->UninviteFromGroup();
|
||||||
if (Group* invitedgroup = invited->GetGroupInvite())
|
if (invited->GetGroupInvite())
|
||||||
invited->UninviteFromGroup();
|
invited->UninviteFromGroup();
|
||||||
|
|
||||||
// Try create new group
|
// Try create new group
|
||||||
|
|||||||
Reference in New Issue
Block a user