Core: Fix compiler warnings

This commit is contained in:
Nay committed 2013-05-16 01:10:53 +01:00
1 parent e0c8020a21
commit 60dae46462
5 files changed
+11 -5

No files matched your search

+3 -3
View File
@@ -45,20 +45,20 @@ public:
ChatCommand* GetCommands() const
{
static ChatCommand deserterInstanceCommandTable[] =
static ChatCommand deserterInstanceCommandTable[] =
{
{ "add", SEC_ADMINISTRATOR, false, &HandleDeserterInstanceAdd, "", NULL },
{ "remove", SEC_ADMINISTRATOR, false, &HandleDeserterInstanceRemove, "", NULL },
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
};
static ChatCommand deserterBGCommandTable[] =
static ChatCommand deserterBGCommandTable[] =
{
{ "add", SEC_ADMINISTRATOR, false, &HandleDeserterBGAdd, "", NULL },
{ "remove", SEC_ADMINISTRATOR, false, &HandleDeserterBGRemove, "", NULL },
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
};
static ChatCommand deserterCommandTable[] =
static ChatCommand deserterCommandTable[] =
{
{ "instance", SEC_ADMINISTRATOR, false, NULL, "", deserterInstanceCommandTable },
{ "bg", SEC_ADMINISTRATOR, false, NULL, "", deserterBGCommandTable },
@@ -3078,10 +3078,12 @@ class spell_yogg_saron_in_the_maws_of_the_old_god : public SpellScriptLoader
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
if (Creature* yogg = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(BOSS_YOGG_SARON)))
if (yogg->FindCurrentSpellBySpellId(SPELL_DEAFENING_ROAR))
{
if (GetCaster()->GetDistance(yogg) > 20.0f)
return SPELL_FAILED_OUT_OF_RANGE;
else
return SPELL_CAST_OK;
}
return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
}
@@ -921,7 +921,7 @@ class npc_frostbrood_skytalon : public CreatureScript
if (id == POINT_GRAB_DECOY)
if (TempSummon* summon = me->ToTempSummon())
if (Unit* summoner = summon->GetSummoner())
DoCast(summoner, SPELL_GRAB);
DoCast(summoner, SPELL_GRAB);
}
void UpdateAI(uint32 diff)