(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:
@@ -120,7 +120,7 @@ static void _DoCommandReturnBuildBridge1(class AIInstance *instance)
|
||||
return AIObject::DoCommand(tile, 0, 0, CMD_LANDSCAPE_CLEAR);
|
||||
}
|
||||
|
||||
/* static */ const char *AIBridge::GetName(BridgeID bridge_id)
|
||||
/* static */ char *AIBridge::GetName(BridgeID bridge_id)
|
||||
{
|
||||
if (!IsValidBridge(bridge_id)) return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user