mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 13:23:46 +00:00
(svn r18671) -Fix [FS#3452]: [NewGRF] If an action B did not have a 'data' string but would print it OpenTTD would segfault
This commit is contained in:
parent
d86dbabbc4
commit
75c46b7a27
@ -4371,6 +4371,9 @@ static void GRFLoadError(byte *buf, size_t len)
|
||||
len -= (strlen(data) + 1);
|
||||
|
||||
error->data = TranslateTTDPatchCodes(_cur_grffile->grfid, data);
|
||||
} else {
|
||||
grfmsg(7, "GRFLoadError: No message data supplied.");
|
||||
error->data = strdup("");
|
||||
}
|
||||
|
||||
/* Only two parameter numbers can be used in the string. */
|
||||
|
Loading…
Reference in New Issue
Block a user