removed unneeded [unit] tags in unit.cfg_
This commit is contained in:
parent
675404df75
commit
3936d460e8
1 changed files with 2 additions and 0 deletions
|
@ -1284,6 +1284,8 @@ void unit::read(const config& cfg, bool use_traits, game_state* state)
|
|||
|
||||
cfg_ = cfg;
|
||||
|
||||
cfg_.clear_children("unit"); //remove underlying unit definitions from scenario files
|
||||
|
||||
// @todo: FIXME Compatibility hack for unit renames, can be removed for 1.7.5.
|
||||
if (cfg_["type"] == "Drake Gladiator") {
|
||||
cfg_["type"] = "Drake Thrasher";
|
||||
|
|
Loading…
Add table
Reference in a new issue