author | rubidium |
Fri, 28 Sep 2007 17:04:52 +0000 | |
changeset 8145 | 19efa5646e94 |
parent 8144 | 108caca4f232 |
child 8146 | fae08d49a223 |
--- a/src/newgrf_config.cpp Fri Sep 28 16:05:40 2007 +0000 +++ b/src/newgrf_config.cpp Fri Sep 28 17:04:52 2007 +0000 @@ -406,6 +406,7 @@ } DEBUG(grf, 1, "Scan complete, found %d files", num); + if (num == 0 || _all_grfs == NULL) return; /* Sort the linked list using quicksort. * For that we first have to make an array, the qsort and