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

elasota noreply at scummvm.org
Fri May 26 02:11:33 UTC 2023


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

Summary:
f783cc6b81 VCRUISE: Fix a bug where resuming in certain places kicks the player back to the menu


Commit: f783cc6b813c31f39ad2cf54e9aa9bbde75f2d8c
    https://github.com/scummvm/scummvm/commit/f783cc6b813c31f39ad2cf54e9aa9bbde75f2d8c
Author: elasota (ejlasota at gmail.com)
Date: 2023-05-25T22:11:19-04:00

Commit Message:
VCRUISE: Fix a bug where resuming in certain places kicks the player back to the menu

Changed paths:
    engines/vcruise/runtime.cpp


diff --git a/engines/vcruise/runtime.cpp b/engines/vcruise/runtime.cpp
index f69585e380b..566b55b9bc5 100644
--- a/engines/vcruise/runtime.cpp
+++ b/engines/vcruise/runtime.cpp
@@ -5392,6 +5392,9 @@ void Runtime::restoreSaveGameSnapshot() {
 	_gameState = kGameStateWaitingForAnimation;
 	_isInGame = true;
 
+	// Clear script env vars so nothing triggers from terminateScript
+	_scriptEnv = ScriptEnvironmentVars();
+
 	_havePendingScreenChange = true;
 	_forceScreenChange = true;
 




More information about the Scummvm-git-logs mailing list