diff --git a/grfspecial.c b/grfspecial.c index 4498d26fe0..4aae9432fb 100644 --- a/grfspecial.c +++ b/grfspecial.c @@ -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");