fixup 0f5876fe38067c9783f41ab769e485dd8705e30e

There was a small mistake here: The unit constructor
which takes a unit type first and 3 other parameters,
has the 4th one being an optional gender, and the
third a bool. fake_unit had a constructor mapping to
this, which sets the third to false. I over looked
this when factoring out fake_unit, but it only
generates a warning to cast enum to bool on MSVC
compilers.
This commit is contained in:
Chris Beck 2014-06-24 20:37:11 -04:00
parent 9757a2d267
commit 6ec86c98a2

View File

@ -239,7 +239,7 @@ namespace { // Support functions
unit_race::GENDER gender = string_gender(cfg["gender"]);
const unit_type *ut = unit_types.find(type);
if (!ut) return fake_unit_ptr();
fake_unit_ptr fake = fake_unit_ptr(UnitPtr(new unit(*ut, side_num, gender)));
fake_unit_ptr fake = fake_unit_ptr(UnitPtr(new unit(*ut, side_num, false, gender)));
if(!variation.empty()) {
config mod;