diff options
author | Julien Templier | 2010-10-18 21:03:28 +0000 |
---|---|---|
committer | Julien Templier | 2010-10-18 21:03:28 +0000 |
commit | 0c72b1800dc122019643ce05ffd3d2d3163ca6d4 (patch) | |
tree | 7be67fe258ab7c93dd6d14bf19871810e13df8a0 /engines/lastexpress/game | |
parent | 6a67bfd85d33e0cf87267ab56e286bafc96ece27 (diff) | |
download | scummvm-rg350-0c72b1800dc122019643ce05ffd3d2d3163ca6d4.tar.gz scummvm-rg350-0c72b1800dc122019643ce05ffd3d2d3163ca6d4.tar.bz2 scummvm-rg350-0c72b1800dc122019643ce05ffd3d2d3163ca6d4.zip |
LASTEXPRESS: Fix GCC warnings
svn-id: r53588
Diffstat (limited to 'engines/lastexpress/game')
-rw-r--r-- | engines/lastexpress/game/entities.cpp | 2 | ||||
-rw-r--r-- | engines/lastexpress/game/sound.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/game/entities.cpp b/engines/lastexpress/game/entities.cpp index ef21fee0ae..0ef5b1b740 100644 --- a/engines/lastexpress/game/entities.cpp +++ b/engines/lastexpress/game/entities.cpp @@ -221,7 +221,7 @@ int Entities::getPosition(CarIndex car, Position position) { if (car < 0 || car > 10) error("Entities::getPosition: trying to access an invalid car (was: %d, valid:0-9)", car); - if (position < 0 || position > 100) + if (position > 100) error("Entities::getPosition: trying to access an invalid position (was: %d, valid:0-100)", position); return _positions[index]; diff --git a/engines/lastexpress/game/sound.h b/engines/lastexpress/game/sound.h index 3cb17db80c..3f3941f207 100644 --- a/engines/lastexpress/game/sound.h +++ b/engines/lastexpress/game/sound.h @@ -273,7 +273,7 @@ private: subtitle = NULL; isStreamed = false; - }; + } }; // Engine |