From 3abb8abd07e56b4b051d57cd6e6f1c56ab8bdb64 Mon Sep 17 00:00:00 2001 From: truebrain Date: Sat, 17 Jan 2009 15:31:30 +0000 Subject: (svn r15123) -Fix [NoAI]: 'const char *' implies that the return value should not be free'd, which is should .. so make them 'char *' --- src/ai/api/ai_cargo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_cargo.cpp') diff --git a/src/ai/api/ai_cargo.cpp b/src/ai/api/ai_cargo.cpp index 6843f7134..dccf2af6e 100644 --- a/src/ai/api/ai_cargo.cpp +++ b/src/ai/api/ai_cargo.cpp @@ -15,7 +15,7 @@ return (cargo_type < NUM_CARGO && ::GetCargo(cargo_type)->IsValid()); } -/* static */ const char *AICargo::GetCargoLabel(CargoID cargo_type) +/* static */ char *AICargo::GetCargoLabel(CargoID cargo_type) { if (!IsValidCargo(cargo_type)) return NULL; const CargoSpec *cargo = ::GetCargo(cargo_type); -- cgit v1.2.3-54-g00ecf