Update UnitMethods.h

This commit is contained in:
RedSkull-666
2020-02-24 18:28:02 +01:00
committed by GitHub
parent f50d94b4a8
commit dee2d51884

View File

@@ -2132,6 +2132,7 @@ namespace LuaUnit
int MoveExpire(lua_State* L, Unit* unit)
{
#ifdef TRINITY
(void) L; // ensure that the variable is referenced in order to pass compiler checks
unit->GetMotionMaster()->Clear();
#else
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
@@ -2148,6 +2149,7 @@ namespace LuaUnit
int MoveClear(lua_State* L, Unit* unit)
{
#ifdef TRINITY
(void) L; // ensure that the variable is referenced in order to pass compiler checks
unit->GetMotionMaster()->Clear();
#else
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);