Skip to content

Commit

Permalink
fix recuits carryover
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 17, 2014
1 parent 1c2d254 commit f80f710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/carryover.cpp
Expand Up @@ -29,7 +29,8 @@ carryover::carryover(const config& side)
, current_player_(side["current_player"])
, gold_(side["gold"].to_int())
, name_(side["name"])
, previous_recruits_(utils::set_split(side["previous_recruits"]))
// if we load it from a snapshot we need to read the recruits from "recruits" and not from "previous_recruits".
, previous_recruits_(side.has_attribute("recruit") ? utils::set_split(side["recruit"]) :utils::set_split(side["previous_recruits"]))
, recall_list_()
, save_id_(side["save_id"])
{
Expand Down

0 comments on commit f80f710

Please sign in to comment.