changeset 10316 | 6878402fa6e5 |
parent 10285 | ba2d207f4a26 |
--- a/src/newgrf_station.cpp Wed Apr 23 21:55:24 2008 +0000 +++ b/src/newgrf_station.cpp Wed Apr 23 22:16:41 2008 +0000 @@ -676,7 +676,7 @@ { uint i; - if (statspec == NULL) return 0; + if (statspec == NULL || st == NULL) return 0; /* Check if this spec has already been allocated */ for (i = 1; i < st->num_specs && i < MAX_SPECLIST; i++) {