mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 19:43:26 +00:00
bug #12587: added the missing gold_add value in the second writer...
...for player saves
This commit is contained in:
parent
69542e7e31
commit
329c3905bd
@ -602,6 +602,9 @@ static void write_player(config_writer &out, const player_info& player)
|
||||
snprintf(buf,sizeof(buf),"%d",player.gold);
|
||||
|
||||
out.write_key_val("gold", buf);
|
||||
|
||||
const std::string gold_add = player.gold_add ? "true" : "false";
|
||||
out.write_key_val("gold_add", gold_add);
|
||||
|
||||
for(std::vector<unit>::const_iterator i = player.available_units.begin();
|
||||
i != player.available_units.end(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user