(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
authorpeter1138
Wed, 09 Jan 2008 23:17:40 +0000
changeset 8239 fdfd0e6c4b51
parent 8238 d47a86c79603
child 8240 0a10b565233a
(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);
 	}