(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 ::IsValidTownID(town_id);
|
||||
}
|
||||
|
||||
/* static */ const char *AITown::GetName(TownID town_id)
|
||||
/* static */ char *AITown::GetName(TownID town_id)
|
||||
{
|
||||
if (!IsValidTown(town_id)) return NULL;
|
||||
static const int len = 64;
|
||||
|
Reference in New Issue
Block a user