[Scummvm-git-logs] scummvm master -> a3ddd4cdc97ce7bdcad555379fb7bfd109aa972f

neuromancer noreply at scummvm.org
Tue Oct 7 12:08:08 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
a3ddd4cdc9 FREESCAPE: avoid crashing when showing the last riddle in castle (zx)


Commit: a3ddd4cdc97ce7bdcad555379fb7bfd109aa972f
    https://github.com/scummvm/scummvm/commit/a3ddd4cdc97ce7bdcad555379fb7bfd109aa972f
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-10-07T09:07:54-03:00

Commit Message:
FREESCAPE: avoid crashing when showing the last riddle in castle (zx)

Changed paths:
    engines/freescape/games/castle/castle.cpp


diff --git a/engines/freescape/games/castle/castle.cpp b/engines/freescape/games/castle/castle.cpp
index c6bf89d098d..a50e73a31c4 100644
--- a/engines/freescape/games/castle/castle.cpp
+++ b/engines/freescape/games/castle/castle.cpp
@@ -924,7 +924,10 @@ void CastleEngine::executeDestroy(FCLInstruction &instruction) {
 void CastleEngine::executePrint(FCLInstruction &instruction) {
 	uint16 index = instruction._source;
 	_currentAreaMessages.clear();
-	if (index == 128 && isDemo()) {
+	if (index == 128 && isSpectrum()) {
+		drawFullscreenRiddleAndWait(8);
+		return;
+	} else if (index == 128 && isDemo()) {
 		drawFullscreenRiddleAndWait(18);
 		return;
 	} else if (index >= 129) {




More information about the Scummvm-git-logs mailing list