Bug #1708 » 0010-Fix-crash-on-nations-dialog-for-dead-player-governme.patch
| common/government.c | ||
|---|---|---|
|
}
|
||
|
/**********************************************************************//**
|
||
|
Return the (translated) name of the given government of a player.
|
||
|
You don't have to free the return pointer.
|
||
|
Return the (translated) name of the given government of a player.
|
||
|
You don't need to free returned pointer.
|
||
|
**************************************************************************/
|
||
|
const char *government_name_for_player(const struct player *pplayer)
|
||
|
{
|
||
|
if (!pplayer->is_alive) {
|
||
|
return "-";
|
||
|
}
|
||
|
return government_name_translation(government_of_player(pplayer));
|
||
|
}
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »