From 6417a7f1f291550e9bfdf064b609533b3a8fe5b7 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 7 Oct 2025 20:40:12 -0400 Subject: [PATCH] Add missing write sets --- src/g_demo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/g_demo.c b/src/g_demo.c index 141916b44..2f6a05990 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -2940,7 +2940,10 @@ void G_BeginRecording(void) // player lua vars, always saved even if empty if (demoflags & DF_LUAVARS) + { + demobuf.write = true; LUA_Sync(&demobuf, false, false); + } memset(&oldcmd,0,sizeof(oldcmd)); memset(&oldghost,0,sizeof(oldghost)); @@ -3793,6 +3796,7 @@ void G_DoPlayDemo(char *defdemoname) LUA_ClearState(); // No modeattacking check, DF_LUAVARS won't be present here. + demobuf.write = false; LUA_Sync(&demobuf, false, G_CompatLevel(0x0002)); }