Only save demo if demobuf.p is ready

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