From 8073b8b3f0f85bd2201ed47f30e80d62d072dcf8 Mon Sep 17 00:00:00 2001 From: LJ Sonic Date: Thu, 14 Mar 2024 20:20:12 +0100 Subject: [PATCH] Fix rare Lua bug when updating a SPR_ constant --- src/deh_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deh_lua.c b/src/deh_lua.c index b73479263..9c9e62a69 100644 --- a/src/deh_lua.c +++ b/src/deh_lua.c @@ -740,7 +740,7 @@ void LUA_UpdateSprName(const char *name, lua_Integer value) if (!lua_isnil(gL, -1)) { - lua_pushstring(gL, name); + lua_pushstring(gL, fullname); lua_pushinteger(gL, value); lua_rawset(gL, LUA_GLOBALSINDEX); }