aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2009-07-28 15:05:44 +0000
committerSven Hesse2009-07-28 15:05:44 +0000
commitf832d0fc5692133bb3c38c1b19e87f315a8a80fc (patch)
treee83716401d740146c5aa7afc6418bb1eece8587b /engines
parent14114bf3976097ca3d92cb21fa6ac3b8e4abb010 (diff)
downloadscummvm-rg350-f832d0fc5692133bb3c38c1b19e87f315a8a80fc.tar.gz
scummvm-rg350-f832d0fc5692133bb3c38c1b19e87f315a8a80fc.tar.bz2
scummvm-rg350-f832d0fc5692133bb3c38c1b19e87f315a8a80fc.zip
Silencing two "empty loop body" warnings
svn-id: r42856
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/scenery.cpp2
-rw-r--r--engines/gob/script.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/scenery.cpp b/engines/gob/scenery.cpp
index 0780a85b04..568835dd37 100644
--- a/engines/gob/scenery.cpp
+++ b/engines/gob/scenery.cpp
@@ -185,7 +185,7 @@ int16 Scenery::loadStatic(char search) {
_staticPictToSprite[7 * sceneryIndex + i] = sprIndex;
_spriteRefs[sprIndex]++;
} else {
- for (sprIndex = 19; _vm->_draw->_spritesArray[sprIndex] != 0; sprIndex--);
+ for (sprIndex = 19; _vm->_draw->_spritesArray[sprIndex] != 0; sprIndex--) { }
_staticPictToSprite[7 * sceneryIndex + i] = sprIndex;
_spriteRefs[sprIndex] = 1;
diff --git a/engines/gob/script.cpp b/engines/gob/script.cpp
index 38b1f8fa40..0475bb06f7 100644
--- a/engines/gob/script.cpp
+++ b/engines/gob/script.cpp
@@ -201,7 +201,7 @@ int32 Script::readInt32() {
char *Script::readString(int32 length) {
if (length < 0) {
length = 0;
- while (_totPtr[length++] != '\0');
+ while (_totPtr[length++] != '\0') { }
}
char *string = (char *) _totPtr;