From b3eef9e066d8155bb9ba28bf1935f3024deebccf Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Sun, 1 Nov 2009 09:39:16 +0000 Subject: AGOS Simon1 Windows fix. Fixed careless use of setChar function. svn-id: r45592 --- engines/agos/subroutine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/agos') 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()); } -- cgit v1.2.3