mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 02:23:16 +00:00
Fixes some problems with recall lists at the start of a campaign...
as well as bug #8886 (empty recall list).
This commit is contained in:
parent
47bb2bf515
commit
a02631f503
@ -151,7 +151,7 @@ void get_player_info(const config& cfg, game_state& gamestate, std::string save_
|
||||
player->available_units.clear();
|
||||
}
|
||||
//backwards compatibility code for 1.2/1.2.1
|
||||
if ( (starting_units.begin() != starting_units.end()) && player && (gamestate.version < "1.2.2") ){
|
||||
if ( (starting_units.begin() != starting_units.end()) && player && (!gamestate.version.empty()) && (gamestate.version < "1.2.2") ){
|
||||
player->available_units.clear();
|
||||
}
|
||||
for(config::child_list::const_iterator su = starting_units.begin(); su != starting_units.end(); ++su) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user