diff options
Diffstat (limited to 'engines/illusions')
-rw-r--r-- | engines/illusions/bbdou/menusystem_bbdou.cpp | 6 | ||||
-rw-r--r-- | engines/illusions/pathfinder.cpp | 4 | ||||
-rw-r--r-- | engines/illusions/resources/midiresource.cpp | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/engines/illusions/bbdou/menusystem_bbdou.cpp b/engines/illusions/bbdou/menusystem_bbdou.cpp index 9d1b7188db..ab255be40d 100644 --- a/engines/illusions/bbdou/menusystem_bbdou.cpp +++ b/engines/illusions/bbdou/menusystem_bbdou.cpp @@ -55,13 +55,15 @@ void BBDOUMenuSystem::runMenu(MenuChoiceOffsets menuChoiceOffsets, int16 *menuCh } void BBDOUMenuSystem::clearMenus() { - for (int i = 0; i < kBBDOULastMenuIndex; ++i) + for (int i = 0; i < kBBDOULastMenuIndex; ++i) { _menus[i] = 0; + } } void BBDOUMenuSystem::freeMenus() { - for (int i = 0; i < kBBDOULastMenuIndex; ++i) + for (int i = 0; i < kBBDOULastMenuIndex; ++i) { delete _menus[i]; + } } BaseMenu *BBDOUMenuSystem::getMenuById(int menuId) { diff --git a/engines/illusions/pathfinder.cpp b/engines/illusions/pathfinder.cpp index 2f723563e9..777cb4d4bd 100644 --- a/engines/illusions/pathfinder.cpp +++ b/engines/illusions/pathfinder.cpp @@ -83,7 +83,7 @@ PointArray *PathFinder::findPathInternal(Common::Point sourcePt, Common::Point d void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) { // For each three points A, B and C, removes B if the line between A and C is not blocked - for (uint index = 0; index + 2 < foundPath->size(); ++index) { + for (uint index = 0; index + 2 < foundPath->size(); ++index) { PathLine line; line.p0 = index == 0 ? sourcePt : (*foundPath)[index - 1]; line.p1 = (*foundPath)[index + 1]; @@ -91,7 +91,7 @@ void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) { debug("remove point"); foundPath->remove_at(index); } - } + } } bool PathFinder::isLineBlocked(PathLine &line) { diff --git a/engines/illusions/resources/midiresource.cpp b/engines/illusions/resources/midiresource.cpp index 060565b02a..036755b298 100644 --- a/engines/illusions/resources/midiresource.cpp +++ b/engines/illusions/resources/midiresource.cpp @@ -69,8 +69,9 @@ void MidiGroupResource::load(byte *data, uint32 dataSize) { debug("_midiMusicCount: %d; midiMusicOffs: %08X", _midiMusicCount, midiMusicOffs); _midiMusic = new MidiMusic[_midiMusicCount]; stream.seek(midiMusicOffs); - for (uint i = 0; i < _midiMusicCount; ++i) + for (uint i = 0; i < _midiMusicCount; ++i) { _midiMusic[i].load(stream); + } } |