fixed handling of global variables of type short

pull/7/head
Marc Zinnschlag 15 years ago
parent 74f3eb6ad4
commit e670753497

@ -40,7 +40,7 @@ namespace MWWorld
case ESM::VT_Short:
type = 's';
value.mShort = *reinterpret_cast<const Interpreter::Type_Integer *> (
value.mShort = *reinterpret_cast<const Interpreter::Type_Float *> (
&iter->second.value);
break;

@ -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<std::string, std::pair<char, Data> > Collection;

Loading…
Cancel
Save