From a1cbc7fb429e0d482a7beb8c59eef81256c6cdd3 Mon Sep 17 00:00:00 2001 From: Michael Papageorgiou Date: Thu, 1 Mar 2012 14:00:45 +0200 Subject: [PATCH] Altered getFver to fix a warning --- components/esm/esm_reader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esm/esm_reader.hpp b/components/esm/esm_reader.hpp index e5b230748c..0420f37cd6 100644 --- a/components/esm/esm_reader.hpp +++ b/components/esm/esm_reader.hpp @@ -153,7 +153,7 @@ public: *************************************************************************/ int getVer() { return mCtx.header.version; } - float getFVer() { return *((float*)&mCtx.header.version); } + float getFVer() { if(mCtx.header.version == VER_12) return 1.2; else return 1.3; } int getSpecial() { return mSpf; } const std::string getAuthor() { return mCtx.header.author.toString(); } const std::string getDesc() { return mCtx.header.desc.toString(); }