Only save demo if demobuf.p is ready

This commit is contained in:
Alug committed 2024-09-16 13:36:13 +02:00
1 parent 56182a1ef5
commit d138cee30c
1 file changed
+4 -1
+4 -1
View File
@@ -8143,7 +8143,10 @@ boolean G_CheckDemoStatus(void)
if (demo.recording && (modeattacking || demo.savemode != DSM_NOTSAVING))
{
G_SaveDemo();
if (demobuf.p)
{
G_SaveDemo();
}
return true;
}