(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:
@@ -25,7 +25,7 @@
|
||||
return ::IsEngineIndex(engine_id) && HasBit(::GetEngine(engine_id)->company_avail, _current_company);
|
||||
}
|
||||
|
||||
/* static */ const char *AIEngine::GetName(EngineID engine_id)
|
||||
/* static */ char *AIEngine::GetName(EngineID engine_id)
|
||||
{
|
||||
if (!IsValidEngine(engine_id)) return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user