diff --git a/components/esm/loadrace.cpp b/components/esm/loadrace.cpp index 88ce08c913..fbdf22fb6d 100644 --- a/components/esm/loadrace.cpp +++ b/components/esm/loadrace.cpp @@ -13,9 +13,9 @@ namespace ESM return male ? mMale : mFemale; } - int Race::MaleFemaleF::getValue (bool male) const + float Race::MaleFemaleF::getValue (bool male) const { - return static_cast(male ? mMale : mFemale); + return male ? mMale : mFemale; } void Race::load(ESMReader &esm, bool &isDeleted) diff --git a/components/esm/loadrace.hpp b/components/esm/loadrace.hpp index bf0573075c..d014744472 100644 --- a/components/esm/loadrace.hpp +++ b/components/esm/loadrace.hpp @@ -38,7 +38,7 @@ struct Race { float mMale, mFemale; - int getValue (bool male) const; + float getValue (bool male) const; }; enum Flags