From 3d3f9ea029fb9bbc1d7fe9c02d5e9c723615bb58 Mon Sep 17 00:00:00 2001 From: iThorgrim <125808072+iThorgrim@users.noreply.github.com> Date: Fri, 15 May 2026 10:37:28 +0200 Subject: [PATCH] Fix references to 'creature' with 'unit' in UnitMethods --- src/LuaEngine/methods/UnitMethods.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LuaEngine/methods/UnitMethods.h b/src/LuaEngine/methods/UnitMethods.h index c23ed33..19ed5b7 100644 --- a/src/LuaEngine/methods/UnitMethods.h +++ b/src/LuaEngine/methods/UnitMethods.h @@ -2758,7 +2758,7 @@ namespace LuaUnit */ int IsPet(lua_State* L, Unit* unit) { - ALE::Push(L, creature->IsPet()); + ALE::Push(L, unit->IsPet()); return 1; } @@ -2769,7 +2769,7 @@ namespace LuaUnit */ int ToPet(lua_State* L, Unit* unit) { - ALE::Push(L, creature->ToPet()); + ALE::Push(L, unit->ToPet()); return 1; } };