From 7b94cc4eed2ba7125bf3a8f8f5752ed3a6d13539 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 20 Jan 2015 23:17:27 -0500 Subject: [PATCH] Fix GetHonorStoredKills and NearTeleport return values Corrected line indent --- PlayerMethods.h | 2 +- UnitMethods.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlayerMethods.h b/PlayerMethods.h index 0f162db..8cd3d65 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -235,7 +235,7 @@ namespace LuaPlayer bool honorable = Eluna::CHECKVAL(L, 2, true); Eluna::Push(L, player->GetHonorStoredKills(honorable)); - return 0; + return 1; } int GetRankPoints(Eluna* /*E*/, lua_State* L, Player* player) diff --git a/UnitMethods.h b/UnitMethods.h index 2e1cfb7..5313d70 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -1220,7 +1220,7 @@ namespace LuaUnit #else unit->SetControlled(apply, UNIT_STATE_CONFUSED); #endif - return 0; + return 0; } /** @@ -1699,7 +1699,7 @@ namespace LuaUnit float o = Eluna::CHECKVAL(L, 5); unit->NearTeleportTo(x, y, z, o); - return 1; + return 0; } /**