Skip to content

Commit

Permalink
Possible fix for bad iterator in config object (bug #25026).
Browse files Browse the repository at this point in the history
Possibly introduced in 116ff67. Confirmation on correctness of fix is pending.
Feel free to revert if this change is wrong.
  • Loading branch information
Wedge009 committed Sep 1, 2016
1 parent db23818 commit 3f10cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/units/attack_type.hpp
Expand Up @@ -50,7 +50,7 @@ class attack_type
int num_attacks() const { return num_attacks_; }
double attack_weight() const { return attack_weight_; }
double defense_weight() const { return defense_weight_; }
const config specials() const { return specials_; }
const config &specials() const { return specials_; }

void set_name(const t_string& value) { description_ = value; }
void set_id(const std::string& value) { id_ = value; }
Expand Down

1 comment on commit 3f10cc7

@CelticMinstrel
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change doesn't feel like something that could make a difference between a valid iterator and an invalid one, but maybe I'm missing some implementation detail...

Please sign in to comment.