Skip to content

Commit c5efab3

Browse files
authored
fix(LuaEngine): Register Loot type to fix GetLoot() method (#362)
1 parent 5058479 commit c5efab3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/LuaEngine/LuaFunctions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,9 @@ void RegisterFunctions(ALE* E)
19541954

19551955
ALETemplate<CreatureTemplate>::Register(E, "CreatureTemplate");
19561956

1957+
ALETemplate<Loot>::Register(E, "Loot");
1958+
ALETemplate<Loot>::SetMethods(E, LootMethods);
1959+
19571960
ALETemplate<long long>::Register(E, "long long", true);
19581961

19591962
ALETemplate<unsigned long long>::Register(E, "unsigned long long", true);

0 commit comments

Comments
 (0)