diff options
Diffstat (limited to 'engines/glk/alan2/saveload.cpp')
-rw-r--r-- | engines/glk/alan2/saveload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/alan2/saveload.cpp b/engines/glk/alan2/saveload.cpp index 8d2f7a43be..2e7e3d54d0 100644 --- a/engines/glk/alan2/saveload.cpp +++ b/engines/glk/alan2/saveload.cpp @@ -30,7 +30,7 @@ namespace Glk { namespace Alan2 { void SaveLoad::save() { - int i; + uint i; Common::SaveFileManager *saveFileMan = _vm->getSaveFileManager(); Common::OutSaveFile *saveFile = nullptr; Common::String str; @@ -102,7 +102,7 @@ void SaveLoad::save() { // Save the event queue _events[*_eventTop].time = 0; // Mark the top - for (i = 0; i < *_eventTop + 1; i++) + for (i = 0; i < (uint)*_eventTop + 1; i++) saveFile->write(&_events[i], sizeof(_events[0])); // Save scores @@ -113,7 +113,7 @@ void SaveLoad::save() { } void SaveLoad::restore() { - int i, tmp; + uint i; Common::SaveFileManager *saveFileMan = _vm->getSaveFileManager(); Common::InSaveFile *saveFile = nullptr; Common::String str; |