summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-04-16 11:33:26 +0000
committerDarkvater <darkvater@openttd.org>2006-04-16 11:33:26 +0000
commitb5bbc23b2c678509dbe02cab4308509808a654ad (patch)
tree13e407c926c4274092d6f0f49a00ca6e9668be55 /newgrf.c
parent4db1144b6d71aaf511a78b45c1536ca90d629f4f (diff)
downloadopenttd-b5bbc23b2c678509dbe02cab4308509808a654ad.tar.xz
(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
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index c38b4786a..93339ad80 100644
--- 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 @@ static void DefineGotoLabel(byte *buf, int len)
GRFLabel *label;
- check_length(len, 1, "GRFLabel");
+ check_length(len, 1, "DefineGotoLabel");
buf++; len--;
label = malloc(sizeof(*label));