fix for global variables of type short

actorid
Marc Zinnschlag 12 years ago
parent a7102c143f
commit 3bd228f71b

@ -20,6 +20,14 @@ void Global::load(ESMReader &esm)
// Note: Both floats and longs are represented as floats.
esm.getHNT(mValue, "FLTV");
if (mType==VT_Short)
{
if (mValue!=mValue)
mValue = 0; // nan
else
mValue = static_cast<short> (mValue);
}
}
void Global::save(ESMWriter &esm)

Loading…
Cancel
Save