From 034961c6ed2f8bee1c8dba8e8bb056cdc2a26da0 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 30 Oct 2023 21:24:38 +0300 Subject: [PATCH] Fix hardcoded actions lookup not working --- src/dehacked.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dehacked.c b/src/dehacked.c index 2eb497817..5777e582e 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -9536,7 +9536,8 @@ static int lua_enumlib_kartstuff_get(lua_State *L) static int lua_enumlib_action_get(lua_State *L) { - const char *action = lua_tostring(L, 1)+2; + const char *action = lua_tostring(L, 1); + for (int i = 0; actionpointers[i].name; i++) if (fasticmp(action, actionpointers[i].name)) { // push lib_action as a C closure with the actionf_t* as an upvalue.