mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +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);
|
DEBUG(grf, 1, "Scan complete, found %d files", num);
|
||||||
|
if (num == 0 || _all_grfs == NULL) return;
|
||||||
|
|
||||||
/* Sort the linked list using quicksort.
|
/* Sort the linked list using quicksort.
|
||||||
* For that we first have to make an array, the qsort and
|
* For that we first have to make an array, the qsort and
|
||||||
|
Loading…
Reference in New Issue
Block a user