mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 11:06:41 +00:00
fixed handling of global variables of type short
This commit is contained in:
parent
74f3eb6ad4
commit
e670753497
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ namespace MWWorld
|
||||||
case ESM::VT_Short:
|
case ESM::VT_Short:
|
||||||
|
|
||||||
type = 's';
|
type = 's';
|
||||||
value.mShort = *reinterpret_cast<const Interpreter::Type_Integer *> (
|
value.mShort = *reinterpret_cast<const Interpreter::Type_Float *> (
|
||||||
&iter->second.value);
|
&iter->second.value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
Interpreter::Type_Float mFloat;
|
Interpreter::Type_Float mFloat;
|
||||||
Interpreter::Type_Float mLong; // Why Morrowind, why? :(
|
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;
|
typedef std::map<std::string, std::pair<char, Data> > Collection;
|
||||||
|
|
Loading…
Reference in a new issue