Fix hardcoded actions lookup not working

This commit is contained in:
indev committed 2023-10-30 21:24:38 +03:00
1 parent d96389db54
commit 034961c6ed
1 file changed
+2 -1
+2 -1
View File
@@ -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.