mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-20 23:01:36 -04:00
Fix a lot of warnings
This commit is contained in:
@@ -1521,7 +1521,7 @@ class spell_gen_luck_of_the_draw : public SpellScriptLoader
|
||||
if (group && group->isLFGGroup())
|
||||
if (uint32 dungeonId = sLFGMgr->GetDungeon(group->GetGUID(), true))
|
||||
if (LFGDungeonEntry const* dungeon = sLFGDungeonStore.LookupEntry(dungeonId))
|
||||
if (dungeon->map == map->GetId() && dungeon->difficulty == map->GetDifficulty())
|
||||
if (uint32(dungeon->map) == map->GetId() && dungeon->difficulty == map->GetDifficulty())
|
||||
if (randomDungeon && randomDungeon->type == LFG_TYPE_RANDOM)
|
||||
return; // in correct dungeon
|
||||
|
||||
@@ -1706,6 +1706,8 @@ class spell_gen_break_shield: public SpellScriptLoader
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1834,7 +1836,7 @@ class spell_gen_mounted_charge: public SpellScriptLoader
|
||||
}
|
||||
}
|
||||
|
||||
void HandleChargeEffect(SpellEffIndex effIndex)
|
||||
void HandleChargeEffect(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
uint32 spellId;
|
||||
|
||||
@@ -1908,7 +1910,7 @@ class spell_gen_defend : public SpellScriptLoader
|
||||
|
||||
void RefreshVisualShields(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
if (GetCaster())
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
|
||||
@@ -1989,7 +1991,7 @@ class spell_gen_tournament_duel : public SpellScriptLoader
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleScriptEffect(SpellEffIndex effIndex)
|
||||
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* rider = GetCaster()->GetCharmer())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user