If a unit's alignment is changed to nonsense in WML, default to neutral
This commit is contained in:
parent
8991899f24
commit
cc9d027922
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ unit::unit(unit_map* unitmap, const config& cfg,
|
|||
alignment_ = unit_type::NEUTRAL;
|
||||
} else if(cfg["alignment"]=="chaotic") {
|
||||
alignment_ = unit_type::CHAOTIC;
|
||||
} else if(cfg["type"]=="") {
|
||||
} else {
|
||||
alignment_ = unit_type::NEUTRAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue