(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
authorpeter1138
Wed, 09 Jan 2008 23:17:40 +0000
changeset 8735 58c5d30f54b0
parent 8734 b7fc8c6fd379
child 8736 980e65a5d4ca
(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
src/newgrf.cpp
--- a/src/newgrf.cpp	Wed Jan 09 23:00:59 2008 +0000
+++ b/src/newgrf.cpp	Wed Jan 09 23:17:40 2008 +0000
@@ -2346,7 +2346,7 @@
 		_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);
 	}