(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)

This commit is contained in:
bjarni 2004-11-14 22:25:21 +00:00
parent fb64b4e499
commit 363a92bd43

View File

@ -1821,6 +1821,7 @@ static void GRFInhibit(byte *buf, int len)
int i;
check_length(len, 1, "GRFInhibit");
buf++, len--;
num = grf_load_byte(&buf); len--;
check_length(len, 4 * num, "GRFInhibit");