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

@@ -2285,7 +2285,7 @@ namespace LuaUnit
*/
int CastSpell(lua_State* L, Unit* unit)
{
Unit* target = Eluna::CHECKOBJ<Unit>(L, 2, NULL);
Unit* target = Eluna::CHECKOBJ<Unit>(L, 2, false);
uint32 spell = Eluna::CHECKVAL<uint32>(L, 3);
bool triggered = Eluna::CHECKVAL<bool>(L, 4, false);
#ifdef CMANGOS
@@ -2319,7 +2319,7 @@ namespace LuaUnit
*/
int CastCustomSpell(lua_State* L, Unit* unit)
{
Unit* target = Eluna::CHECKOBJ<Unit>(L, 2, NULL);
Unit* target = Eluna::CHECKOBJ<Unit>(L, 2, false);
uint32 spell = Eluna::CHECKVAL<uint32>(L, 3);
bool triggered = Eluna::CHECKVAL<bool>(L, 4, false);
bool has_bp0 = !lua_isnoneornil(L, 5);