Fix dumb CE compiler

svn-id: r16026
This commit is contained in:
Nicolas Bacca 2004-12-11 00:37:05 +00:00
parent c9fb63af0b
commit 876079be75
3 changed files with 9 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -511,11 +511,12 @@ Sound::~Sound() {
int Sound::readBuffer(int16 *buffer, const int numSamples) {
Common::StackLock lock(_mutex);
int i;
if (!_soundOn || _musicPaused)
return 0;
for (int i = 0; i < MAXMUS; i++) {
for (i = 0; i < MAXMUS; i++) {
if (_music[i] && _music[i]->readyToRemove()) {
delete _music[i];
_music[i] = NULL;
@ -536,7 +537,7 @@ int Sound::readBuffer(int16 *buffer, const int numSamples) {
if (!_mixBuffer)
return 0;
for (int i = 0; i < MAXMUS; i++) {
for (i = 0; i < MAXMUS; i++) {
if (!_music[i])
continue;