aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorNicolas Bacca2004-12-11 00:37:05 +0000
committerNicolas Bacca2004-12-11 00:37:05 +0000
commit876079be752023dcd377518f226fe3fc158b6048 (patch)
tree2f2eca82091743c561f42e0347556a6bf285209f /sword1
parentc9fb63af0b63d0a5424b34a0e3acd79ea14fd199 (diff)
downloadscummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.tar.gz
scummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.tar.bz2
scummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.zip
Fix dumb CE compiler
svn-id: r16026
Diffstat (limited to 'sword1')
-rw-r--r--sword1/menu.cpp5
-rw-r--r--sword1/sword1.cpp5
2 files changed, 6 insertions, 4 deletions
diff --git a/sword1/menu.cpp b/sword1/menu.cpp
index 53075806ff..a5de5092b0 100644
--- a/sword1/menu.cpp
+++ b/sword1/menu.cpp
@@ -104,12 +104,13 @@ Menu::Menu(Screen *pScreen, Mouse *pMouse) {
}
Menu::~Menu(void) {
+ int i;
// the menu may be open, so delete the icons
- for (int i = 0; i < TOTAL_pockets; i++) {
+ for (i = 0; i < TOTAL_pockets; i++) {
delete _objects[i];
_objects[i] = NULL;
}
- for (int i = 0; i < 16; i++) {
+ for (i = 0; i < 16; i++) {
delete _subjects[i];
_subjects[i] = NULL;
}
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index 08e58d6860..d2ccbd1f01 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -87,14 +87,15 @@ void Sword1CheckDirectory(const FSList &fslist, bool *filesFound) {
}
DetectedGameList Engine_SWORD1_detectGames(const FSList &fslist) {
+ int i;
DetectedGameList detectedGames;
bool filesFound[NUM_FILES_TO_CHECK];
- for (int i = 0; i < NUM_FILES_TO_CHECK; i++)
+ for (i = 0; i < NUM_FILES_TO_CHECK; i++)
filesFound[i] = false;
Sword1CheckDirectory(fslist, filesFound);
bool mainFilesFound = true;
- for (int i = 0; i < NUM_FILES_TO_CHECK -1; i++)
+ for (i = 0; i < NUM_FILES_TO_CHECK -1; i++)
if (!filesFound[i])
mainFilesFound = false;