(svn r3190) Turn some loops into canonical for loop form

This commit is contained in:
tron
2005-11-15 11:46:49 +00:00
parent 66d44766a7
commit 3bf8d2ccbb
3 changed files with 10 additions and 14 deletions

View File

@@ -1277,13 +1277,10 @@ void ShowNewgrf(void)
{ // little helper function to calculate _grffile_count
// should be REMOVED once _grffile_count is calculated at loading
const GRFFile* c = _first_grffile;
const GRFFile* c;
_grffile_count = 0;
while (c != NULL) {
_grffile_count++;
c = c->next;
}
for (c = _first_grffile; c != NULL; c = c->next) _grffile_count++;
}
w->vscroll.cap = 12;