fixed trying to quick-save tape when playing game without recording
authorHolger Schemel <info@artsoft.org>
Sat, 26 Nov 2022 10:27:30 +0000 (11:27 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 26 Nov 2022 10:28:53 +0000 (11:28 +0100)
src/tape.c

index 4efba84a76f7c05072ca49121845334cc744b940..6b3523d419d4cf9b4a2ea8be3d2494409d92ae48 100644 (file)
@@ -1195,6 +1195,13 @@ void TapeQuickSave(void)
   if (game_status != GAME_MODE_PLAYING)
     return;
 
+  if (!tape.recording)
+  {
+    Request("No recording that can be saved!", REQ_CONFIRM);
+
+    return;
+  }
+
   if (tape.recording)
     TapeHaltRecording();       // prepare tape for saving on-the-fly