[Scummvm-git-logs] scummvm master -> 66babe212e7984c7c4ba25f14f5b37fe8af354ae

dreammaster paulfgilbert at gmail.com
Mon Jun 17 03:59:00 CEST 2019


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:
66babe212e GLK: ADVSYS: Fix restoring games in-game


Commit: 66babe212e7984c7c4ba25f14f5b37fe8af354ae
    https://github.com/scummvm/scummvm/commit/66babe212e7984c7c4ba25f14f5b37fe8af354ae
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-06-16T18:56:39-07:00

Commit Message:
GLK: ADVSYS: Fix restoring games in-game

Changed paths:
    engines/glk/advsys/advsys.cpp
    engines/glk/advsys/vm.cpp


diff --git a/engines/glk/advsys/advsys.cpp b/engines/glk/advsys/advsys.cpp
index c65cd18..a61033a 100644
--- a/engines/glk/advsys/advsys.cpp
+++ b/engines/glk/advsys/advsys.cpp
@@ -83,7 +83,6 @@ void AdvSys::deinitialize() {
 }
 
 bool AdvSys::singleAction() {
-	debug("------------------");
 	// Do the before code
 	switch (execute(_beforeOffset)) {
 	case ABORT:
diff --git a/engines/glk/advsys/vm.cpp b/engines/glk/advsys/vm.cpp
index 13929ae..1cb42da 100644
--- a/engines/glk/advsys/vm.cpp
+++ b/engines/glk/advsys/vm.cpp
@@ -315,7 +315,7 @@ void VM::opSAVE() {
 }
 
 void VM::opRESTORE() {
-	if (saveGame().getCode() != Common::kNoError)
+	if (loadGame().getCode() != Common::kNoError)
 		print(_("Sorry, the savegame couldn't be restored"));
 }
 





More information about the Scummvm-git-logs mailing list