Fixed MSVC warning.

warning C4305: 'return' : truncation from 'double' to 'float'
openmw-35
dteviot 10 years ago
parent e02bab67ba
commit f95743ccc3

@ -32,7 +32,7 @@ public:
int getVer() const { return mHeader.mData.version; }
int getRecordCount() const { return mHeader.mData.records; }
float getFVer() const { if(mHeader.mData.version == VER_12) return 1.2; else return 1.3; }
float getFVer() const { return (mHeader.mData.version == VER_12) ? 1.2f : 1.3f; }
const std::string getAuthor() const { return mHeader.mData.author.toString(); }
const std::string getDesc() const { return mHeader.mData.desc.toString(); }
const std::vector<Header::MasterData> &getGameFiles() const { return mHeader.mMaster; }

Loading…
Cancel
Save