From 363a92bd43daf771a4859db31369ac39340f57d2 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sun, 14 Nov 2004 22:25:21 +0000 Subject: [PATCH] (svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky) --- grfspecial.c | 1 + 1 file changed, 1 insertion(+) 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");