(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
authorbjarni
Sun, 14 Nov 2004 22:25:21 +0000
changeset 416 810c6de8eeed
parent 415 423de36034b8
child 417 0c63a94557a5
(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");