Lua API: Fix side.side_name = side.side_name changing the side name
Addresses #4994
This commit is contained in:
parent
4426f9740f
commit
839bcb513c
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ public:
|
|||
|
||||
const std::string& side_name() const { return info_.side_name.empty() ? info_.current_player : info_.side_name.str(); }
|
||||
t_string side_name_tstr() const { return info_.side_name.empty() ? t_string(info_.current_player) : info_.side_name; }
|
||||
void set_side_name(const t_string& new_name) {info_.side_name = new_name;}
|
||||
void set_side_name(const t_string& new_name) {info_.side_name = new_name == info_.current_player ? "" : new_name;}
|
||||
const std::string& faction() const { return info_.faction; }
|
||||
const t_string& faction_name() const { return info_.faction_name; }
|
||||
//Returns true if the hex is shrouded/fogged for this side, or
|
||||
|
|
Loading…
Add table
Reference in a new issue