Fix clang warnings about variable usage

This commit is contained in:
Rochet2
2017-04-13 00:51:17 +03:00
parent 4cc5e42562
commit 00eef91aa2
7 changed files with 7 additions and 27 deletions

View File

@@ -3432,25 +3432,6 @@ namespace LuaPlayer
return 0;
}
/**
* Clears a cooldown of the specified spell
*
* @param uint32 spellId : entry of a spell
* @param [Unit] target
*/
int SendClearCooldowns(lua_State* L, Player* player)
{
uint32 spellId = Eluna::CHECKVAL<uint32>(L, 2);
Unit* target = Eluna::CHECKOBJ<Unit>(L, 3);
#ifdef TRINITY
target->GetSpellHistory()->ResetCooldown(spellId, true);
#else
player->SendClearCooldown(spellId, target);
#endif
return 0;
}
/**
* Sends a Broadcast Message to the [Player]
*