mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
This commit is contained in:
@@ -1821,6 +1821,7 @@ static void GRFInhibit(byte *buf, int len)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
check_length(len, 1, "GRFInhibit");
|
check_length(len, 1, "GRFInhibit");
|
||||||
|
buf++, len--;
|
||||||
num = grf_load_byte(&buf); len--;
|
num = grf_load_byte(&buf); len--;
|
||||||
check_length(len, 4 * num, "GRFInhibit");
|
check_length(len, 4 * num, "GRFInhibit");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user