mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r11180) -Fix (r11175): crash on load when you don't have any NewGRFs. More interesting is: who plays without them ;)
This commit is contained in:
parent
9f552ae0b3
commit
08fd0030d2
@ -406,6 +406,7 @@ void ScanNewGRFFiles()
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user