diff --git a/src/deh_lua.c b/src/deh_lua.c
index b73479263ff57653925e0b4df47a8e555d7f9bc4..9c9e62a693cd6f0fc7769daa419fdd3da7085c83 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);
 	}