summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_event_types.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-17 15:31:30 +0000
committertruebrain <truebrain@openttd.org>2009-01-17 15:31:30 +0000
commit3abb8abd07e56b4b051d57cd6e6f1c56ab8bdb64 (patch)
tree14e7ce689d02dc05c06feede936f8d1c1bdb8c02 /src/ai/api/ai_event_types.cpp
parent7e8d9a3e667385113636cfc09d7cab4887591cf7 (diff)
downloadopenttd-3abb8abd07e56b4b051d57cd6e6f1c56ab8bdb64.tar.xz
(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value should not be free'd, which is should .. so make them 'char *'
Diffstat (limited to 'src/ai/api/ai_event_types.cpp')
-rw-r--r--src/ai/api/ai_event_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp
index b865ca59d..09d801e70 100644
--- a/src/ai/api/ai_event_types.cpp
+++ b/src/ai/api/ai_event_types.cpp
@@ -19,7 +19,7 @@ bool AIEventVehicleCrashed::CloneCrashedVehicle(TileIndex depot)
return false;
}
-const char *AIEventEnginePreview::GetName()
+char *AIEventEnginePreview::GetName()
{
static const int len = 64;
char *engine_name = MallocT<char>(len);