diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-09 23:17:40 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-09 23:17:40 +0000 |
commit | 0645689a870c95e736392ad5e96bb33a7af3b002 (patch) | |
tree | f8c8815e0ae147617735dc011a4913baff725db7 | |
parent | bc4ed3eafd45062068dd397ffd602845d747597a (diff) | |
download | openttd-0645689a870c95e736392ad5e96bb33a7af3b002.tar.xz |
(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 7c5eac1f6..7d963fda4 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2346,7 +2346,7 @@ static void NewSpriteSet(byte *buf, int len) _cur_spriteid, feature, num_sets, num_ents, num_sets * num_ents ); - for (uint16 i = 0; i < num_sets * num_ents; i++) { + for (uint i = 0; i < num_sets * num_ents; i++) { _nfo_line++; LoadNextSprite(_cur_spriteid++, _file_index, _nfo_line); } |