From c5efab32ede208fccb0afe2b675e94bb521140af Mon Sep 17 00:00:00 2001 From: FM <120525814@qq.com> Date: Sun, 8 Mar 2026 03:58:55 +0800 Subject: [PATCH] fix(LuaEngine): Register Loot type to fix GetLoot() method (#362) --- src/LuaEngine/LuaFunctions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LuaEngine/LuaFunctions.cpp b/src/LuaEngine/LuaFunctions.cpp index dd305fc..fc351b9 100644 --- a/src/LuaEngine/LuaFunctions.cpp +++ b/src/LuaEngine/LuaFunctions.cpp @@ -1954,6 +1954,9 @@ void RegisterFunctions(ALE* E) ALETemplate::Register(E, "CreatureTemplate"); + ALETemplate::Register(E, "Loot"); + ALETemplate::SetMethods(E, LootMethods); + ALETemplate::Register(E, "long long", true); ALETemplate::Register(E, "unsigned long long", true);