(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:
@@ -30,7 +30,7 @@
|
||||
return ::GetStationIndex(tile);
|
||||
}
|
||||
|
||||
/* static */ const char *AIStation::GetName(StationID station_id)
|
||||
/* static */ char *AIStation::GetName(StationID station_id)
|
||||
{
|
||||
if (!IsValidStation(station_id)) return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user