Project

General

Profile

Bug #1739 » 0020-team_slot_name_translation-Assert-correctly-on-nonls.patch

S3_3, S3_2 - Marko Lindqvist, 04/16/2026 12:00 AM

View differences:

common/team.c
****************************************************************************/
const char *team_slot_name_translation(const struct team_slot *tslot)
{
#ifdef FREECIV_ENABLE_NLS
fc_assert_ret_val(team_slots_initialised(), NULL);
fc_assert_ret_val(NULL != tslot, NULL);
#ifdef FREECIV_ENABLE_NLS
if (NULL == tslot->name_translation) {
/* Get the team slot as changeable (not _const_) struct. */
struct team_slot *changeable
= team_slot_by_number(team_slot_index(tslot));
team_slot_create_default_name(changeable);
return changeable->name_translation;
}
(2-2/2)