(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
authorbjarni
Sun, 14 Nov 2004 22:25:21 +0000
changeset 416 7ffd7fd0261c
parent 415 20f981988266
child 417 6a7b22f86424
(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
grfspecial.c
--- a/grfspecial.c	Sun Nov 14 22:10:08 2004 +0000
+++ b/grfspecial.c	Sun Nov 14 22:25:21 2004 +0000
@@ -1821,6 +1821,7 @@
 	int i;
 
 	check_length(len, 1, "GRFInhibit");
+	buf++, len--;
 	num = grf_load_byte(&buf); len--;
 	check_length(len, 4 * num, "GRFInhibit");