diff options
author | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
commit | e841bf16d6b955f779e5e30535848bd650d22352 (patch) | |
tree | 843b29df10e35a22304faec81fab929251509d45 /engines/wintermute/base/font/base_font_bitmap.cpp | |
parent | e08a0d84a2dd4ebb312fc72b9757c303e351dbb1 (diff) | |
download | scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.gz scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.bz2 scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.zip |
WINTERMUTE: Fix a few warnings pointed out by fuzzie.
Diffstat (limited to 'engines/wintermute/base/font/base_font_bitmap.cpp')
-rw-r--r-- | engines/wintermute/base/font/base_font_bitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/font/base_font_bitmap.cpp b/engines/wintermute/base/font/base_font_bitmap.cpp index 046ab77333..e2c5fa881c 100644 --- a/engines/wintermute/base/font/base_font_bitmap.cpp +++ b/engines/wintermute/base/font/base_font_bitmap.cpp @@ -371,7 +371,7 @@ bool BaseFontBitmap::loadBuffer(byte *buffer) { case TOKEN_WIDTHS:
parser.scanStr(params, "%D", widths, &num);
- for (i = 0; lastWidth < NUM_CHARACTERS, num > 0; lastWidth++, num--, i++) {
+ for (i = 0; lastWidth < NUM_CHARACTERS && num > 0; lastWidth++, num--, i++) {
_widths[lastWidth] = (byte)widths[i];
}
break;
|