From 3882e8e8415cc28deddf51480fa49ab86970c124 Mon Sep 17 00:00:00 2001 From: estolberg Date: Sun, 24 Feb 2008 20:02:09 +0000 Subject: [PATCH] UA Ltd and SUPERbanking couldn't be selected as bankswitching types in the game properties dialog, because some counter variables hadn't been updated from 21 to 23. Maybe we should use a constant instead? git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1406 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/gui/GameInfoDialog.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stella/src/gui/GameInfoDialog.cxx b/stella/src/gui/GameInfoDialog.cxx index e26d84ecb..41e462aec 100644 --- a/stella/src/gui/GameInfoDialog.cxx +++ b/stella/src/gui/GameInfoDialog.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: GameInfoDialog.cxx,v 1.46 2008-02-06 13:45:23 stephena Exp $ +// $Id: GameInfoDialog.cxx,v 1.47 2008-02-24 20:02:09 estolberg Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -387,12 +387,12 @@ void GameInfoDialog::loadView() mySound->setSelectedTag(0); s = myGameProperties.get(Cartridge_Type); - for(i = 0; i < 21; ++i) + for(i = 0; i < 23; ++i) { if(s == ourCartridgeList[i][1]) break; } - i = (i == 21) ? 0: i + 1; + i = (i == 23) ? 0: i + 1; myType->setSelectedTag(i); // Console properties @@ -539,7 +539,7 @@ void GameInfoDialog::saveConfig() myGameProperties.set(Cartridge_Sound, s); tag = myType->getSelectedTag(); - for(i = 0; i < 21; ++i) + for(i = 0; i < 23; ++i) { if(i == tag-1) {