diff --git a/apps/openmw/mwworld/globals.cpp b/apps/openmw/mwworld/globals.cpp index 6a45a51ec..acaa4243d 100644 --- a/apps/openmw/mwworld/globals.cpp +++ b/apps/openmw/mwworld/globals.cpp @@ -40,7 +40,7 @@ namespace MWWorld case ESM::VT_Short: type = 's'; - value.mShort = *reinterpret_cast ( + value.mShort = *reinterpret_cast ( &iter->second.value); break; diff --git a/apps/openmw/mwworld/globals.hpp b/apps/openmw/mwworld/globals.hpp index 96ec3f3ce..f946b8d14 100644 --- a/apps/openmw/mwworld/globals.hpp +++ b/apps/openmw/mwworld/globals.hpp @@ -21,7 +21,7 @@ namespace MWWorld { Interpreter::Type_Float mFloat; Interpreter::Type_Float mLong; // Why Morrowind, why? :( - Interpreter::Type_Integer mShort; + Interpreter::Type_Float mShort; }; typedef std::map > Collection;