From f832d0fc5692133bb3c38c1b19e87f315a8a80fc Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 28 Jul 2009 15:05:44 +0000 Subject: Silencing two "empty loop body" warnings svn-id: r42856 --- engines/gob/scenery.cpp | 2 +- engines/gob/script.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3