From 67beea845a7244d9ddd4454aa106bbc135e896cc Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 31 Dec 2024 00:33:21 -0500 Subject: [PATCH] thinkers.iterate --- src/lua_thinkerlib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lua_thinkerlib.c b/src/lua_thinkerlib.c index 82baa6469..ac7e0b233 100644 --- a/src/lua_thinkerlib.c +++ b/src/lua_thinkerlib.c @@ -136,5 +136,11 @@ int LUA_ThinkerLib(lua_State *L) lua_pushcclosure(L, lib_startIterate, 1); lua_setfield(L, -2, "iterate"); lua_setglobal(L, "mobjs"); + + lua_createtable(L, 0, 1); + lua_pushcfunction(L, lib_iterateThinkers); + lua_pushcclosure(L, lib_startIterate, 1); + lua_setfield(L, -2, "iterate"); + lua_setglobal(L, "thinkers"); return 0; }