changeset 3566:ad93fb7ceb94 draft

(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
author Darkvater <Darkvater@openttd.org>
date Sun, 16 Apr 2006 11:33:26 +0000
parents f0e34d0b43fa
children bb93038e7add
files newgrf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/newgrf.c
+++ b/newgrf.c
@@ -15,6 +15,7 @@
 #include "sprite.h"
 #include "newgrf.h"
 #include "variables.h"
+#include "string.h"
 #include "bridge.h"
 #include "economy.h"
 #include "newgrf_engine.h"
@@ -2319,7 +2320,7 @@
 
 	GRFLabel *label;
 
-	check_length(len, 1, "GRFLabel");
+	check_length(len, 1, "DefineGotoLabel");
 	buf++; len--;
 
 	label = malloc(sizeof(*label));