(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:
@@ -56,7 +56,7 @@ public:
|
||||
* @note Never use this to check if it is a certain cargo. NewGRF can
|
||||
* redefine all of the names.
|
||||
*/
|
||||
static const char *GetCargoLabel(CargoID cargo_type);
|
||||
static char *GetCargoLabel(CargoID cargo_type);
|
||||
|
||||
/**
|
||||
* Checks whether the give cargo is a freight or not.
|
||||
|
Reference in New Issue
Block a user