Changeset - r6128:35d4a6668543
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-02-23 21:03:57
peter1138@openttd.org
(svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -1480,6 +1480,11 @@ static void SafeChangeInfo(byte *buf, in
 
	uint8 numinfo;
 
	uint8 index;
 

	
 
	if (len == 1) {
 
		grfmsg(8, "Silently ignoring one-byte special sprite 0x00");
 
		return;
 
	}
 

	
 
	if (!check_length(len, 6, "SafeChangeInfo")) return;
 
	buf++;
 
	feature  = grf_load_byte(&buf);
0 comments (0 inline, 0 general)