aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gui_ns.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-08-16 04:15:11 +0000
committerChristopher Page2008-08-16 04:15:11 +0000
commitc22f9b23588121d41fe0a12ce44926d683d7a18d (patch)
tree789fb2373e69e068dacd7494d393fe81dcbb1e3d /engines/parallaction/gui_ns.cpp
parent20f0bb7a40776f4ed64de29898c3939f1c13a8ba (diff)
downloadscummvm-rg350-c22f9b23588121d41fe0a12ce44926d683d7a18d.tar.gz
scummvm-rg350-c22f9b23588121d41fe0a12ce44926d683d7a18d.tar.bz2
scummvm-rg350-c22f9b23588121d41fe0a12ce44926d683d7a18d.zip
Fixes for Parallaction loading from launcher
svn-id: r33923
Diffstat (limited to 'engines/parallaction/gui_ns.cpp')
-rw-r--r--engines/parallaction/gui_ns.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/gui_ns.cpp b/engines/parallaction/gui_ns.cpp
index 942f2fd553..e6f86a1a0a 100644
--- a/engines/parallaction/gui_ns.cpp
+++ b/engines/parallaction/gui_ns.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "common/config-manager.h"
#include "common/system.h"
#include "common/hashmap.h"
@@ -116,7 +117,9 @@ class ChooseLanguageInputState_NS : public MenuInputState {
public:
ChooseLanguageInputState_NS(Parallaction_ns *vm, MenuInputHelper *helper) : MenuInputState("chooselanguage", helper), _vm(vm) {
_allowChoice = false;
- _nextState = "selectgame";
+
+ if (ConfMan.getInt("save_slot") < 0 || ConfMan.getInt("save_slot") > 99)
+ _nextState = "selectgame";
if (_vm->getPlatform() == Common::kPlatformAmiga) {
if (!(_vm->getFeatures() & GF_LANG_MULT)) {