From 9da01ca7679e8b588988e53e0b4ab46f4bfa10f6 Mon Sep 17 00:00:00 2001 From: ConradBunton Date: Thu, 8 Mar 2018 16:40:29 +0100 Subject: [PATCH] Update UnitMethods.h GetPowerType / SetPowerType typo fix --- UnitMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index 694e6e1..3855012 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -850,7 +850,7 @@ namespace LuaUnit { #ifdef TRINITY if (powerType == -1) - return unit->getPowerType(); + return unit->GetPowerType(); #else if (powerType == -1) return unit->GetPowerType(); @@ -976,7 +976,7 @@ namespace LuaUnit int GetPowerType(lua_State* L, Unit* unit) { #ifdef TRINITY - Eluna::Push(L, unit->getPowerType()); + Eluna::Push(L, unit->GetPowerType()); #else Eluna::Push(L, unit->GetPowerType()); #endif @@ -1650,7 +1650,7 @@ namespace LuaUnit return luaL_argerror(L, 2, "valid Powers expected"); #ifdef TRINITY - unit->setPowerType((Powers)type); + unit->SetPowerType((Powers)type); #else unit->SetPowerType((Powers)type); #endif