(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value should not be free'd, which is should .. so make them 'char *'
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user