summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grfspecial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/grfspecial.c b/grfspecial.c
index 4498d26fe..4aae9432f 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");