diff options
author | bjarni <bjarni@openttd.org> | 2004-11-14 22:25:21 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-11-14 22:25:21 +0000 |
commit | 363a92bd43daf771a4859db31369ac39340f57d2 (patch) | |
tree | 9a6f6f9f3495cc9943249eee8eff7ee16478144e /grfspecial.c | |
parent | fb64b4e499ceb631f6e9109d18422e2ae604c204 (diff) | |
download | openttd-363a92bd43daf771a4859db31369ac39340f57d2.tar.xz |
(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
Diffstat (limited to 'grfspecial.c')
-rw-r--r-- | grfspecial.c | 1 |
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"); |