MADS: Fix a couple of warnings

This commit is contained in:
Strangerke 2014-04-28 07:08:23 +02:00
parent 5bb66bdd5b
commit 464627f043
2 changed files with 2 additions and 2 deletions

View File

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

View File

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