fix unit_type image not set in the editor.

This commit is contained in:
gfgtdf 2020-08-28 16:47:30 +02:00 committed by GitHub
parent fa75ad5f76
commit 1423dfdba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,6 @@ void unit_type::build_help_index(
usage_ = cfg["usage"].str();
undead_variation_ = cfg["undead_variation"].str();
default_variation_ = cfg["variation"].str();
image_ = cfg["image"].str();
icon_ = cfg["image_icon"].str();
small_profile_ = cfg["small_profile"].str();
profile_ = cfg["profile"].str();
@ -409,6 +408,8 @@ void unit_type::build_created()
experience_needed_ = cfg["experience"].to_int(500);
cost_ = cfg["cost"].to_int(1);
//needed by the editor.
image_ = cfg["image"].str();
build_status_ = CREATED;
}