aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorYotam Barnoy2009-11-01 09:39:16 +0000
committerYotam Barnoy2009-11-01 09:39:16 +0000
commitb3eef9e066d8155bb9ba28bf1935f3024deebccf (patch)
tree0e7d149340bf2b7a3937d0d7a195a23964bef4fc /engines/agos
parentc8534e180270a4718132a0c7d9b1bff3909db34e (diff)
downloadscummvm-rg350-b3eef9e066d8155bb9ba28bf1935f3024deebccf.tar.gz
scummvm-rg350-b3eef9e066d8155bb9ba28bf1935f3024deebccf.tar.bz2
scummvm-rg350-b3eef9e066d8155bb9ba28bf1935f3024deebccf.zip
AGOS Simon1 Windows fix. Fixed careless use of setChar function.
svn-id: r45592
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/subroutine.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/agos/subroutine.cpp b/engines/agos/subroutine.cpp
index d46a397d32..880e2d0f55 100644
--- a/engines/agos/subroutine.cpp
+++ b/engines/agos/subroutine.cpp
@@ -376,12 +376,12 @@ bool AGOSEngine_Waxworks::loadTablesIntoMem(uint16 subrId) {
if (getGameType() == GType_SIMON2) {
_sound->loadSfxTable(_gameFile, _gameOffsetsPtr[atoi(filename.c_str() + 6) - 1 + _soundIndexBase]);
} else if (getGameType() == GType_SIMON1 && getPlatform() == Common::kPlatformWindows) {
- filename.setChar(0, 'S');
- filename.setChar(1, 'F');
- filename.setChar(2, 'X');
- filename.setChar(3, 'X');
- filename.setChar(4, 'X');
- filename.setChar(5, 'X');
+ filename.setChar('S', 0);
+ filename.setChar('F', 1);
+ filename.setChar('X', 2);
+ filename.setChar('X', 3);
+ filename.setChar('X', 4);
+ filename.setChar('X', 5);
if (atoi(filename.c_str() + 6) != 1 && atoi(filename.c_str() + 6) != 30)
_sound->readSfxFile(filename.c_str());
}