aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/audio.cpp2
-rw-r--r--engines/mads/game_data.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/audio.cpp b/engines/mads/audio.cpp
index 0a9637bfcf..1c61e13957 100644
--- a/engines/mads/audio.cpp
+++ b/engines/mads/audio.cpp
@@ -92,7 +92,7 @@ void AudioPlayer::playSound(int soundIndex, bool loop) {
return;
}
- if (soundIndex < 0 || soundIndex > _dsrEntries.size() - 1) {
+ if (soundIndex < 0 || soundIndex > (int)_dsrEntries.size() - 1) {
warning("Invalid sound index: %i (max %i), not playing sound", soundIndex, _dsrEntries.size() - 1);
return;
}
diff --git a/engines/mads/game_data.cpp b/engines/mads/game_data.cpp
index 9211bbfa5a..72137cfa69 100644
--- a/engines/mads/game_data.cpp
+++ b/engines/mads/game_data.cpp
@@ -47,7 +47,7 @@ bool VisitedScenes::exists(int sceneId) {
}
void VisitedScenes::synchronize(Common::Serializer &s) {
- int count = size();
+ uint count = size();
int v = 0;
s.syncAsUint16LE(count);