Silencing two "empty loop body" warnings

svn-id: r42856
This commit is contained in:
Sven Hesse 2009-07-28 15:05:44 +00:00
parent 14114bf397
commit f832d0fc56
2 changed files with 2 additions and 2 deletions

View File

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

View File

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