(svn r4447) - NewGRF: It seems I committed printing action NOP Action 0x0C which is mainly used for comments. So leave it in, but fix the created warning. Use proper action name for check_length() in Action 0x10
This commit is contained in:
		
							
								
								
									
										3
									
								
								newgrf.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								newgrf.c
									
									
									
									
									
								
							@@ -15,6 +15,7 @@
 | 
				
			|||||||
#include "sprite.h"
 | 
					#include "sprite.h"
 | 
				
			||||||
#include "newgrf.h"
 | 
					#include "newgrf.h"
 | 
				
			||||||
#include "variables.h"
 | 
					#include "variables.h"
 | 
				
			||||||
 | 
					#include "string.h"
 | 
				
			||||||
#include "bridge.h"
 | 
					#include "bridge.h"
 | 
				
			||||||
#include "economy.h"
 | 
					#include "economy.h"
 | 
				
			||||||
#include "newgrf_engine.h"
 | 
					#include "newgrf_engine.h"
 | 
				
			||||||
@@ -2319,7 +2320,7 @@ static void DefineGotoLabel(byte *buf, int len)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	GRFLabel *label;
 | 
						GRFLabel *label;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	check_length(len, 1, "GRFLabel");
 | 
						check_length(len, 1, "DefineGotoLabel");
 | 
				
			||||||
	buf++; len--;
 | 
						buf++; len--;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	label = malloc(sizeof(*label));
 | 
						label = malloc(sizeof(*label));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user