If a unit's alignment is changed to nonsense in WML, default to neutral

This commit is contained in:
Alexander van Gessel 2010-01-29 04:11:56 +01:00
parent 8991899f24
commit cc9d027922

View file

@ -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;
}