mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix CellRef loading issue causing a startup script failure when TR_Mainland.esm is loaded.
This commit is contained in:
parent
f09328ca84
commit
9c0ed69550
@ -18,6 +18,11 @@ void ESM::CellRef::load (ESMReader& esm, bool wideRefNum)
|
||||
|
||||
mRefID = esm.getHNString ("NAME");
|
||||
|
||||
// Again, UNAM sometimes appears after NAME and sometimes later.
|
||||
// Or perhaps this UNAM means something different?
|
||||
mReferenceBlocked = -1;
|
||||
esm.getHNOT (mReferenceBlocked, "UNAM");
|
||||
|
||||
mScale = 1.0;
|
||||
esm.getHNOT (mScale, "XSCL");
|
||||
|
||||
@ -54,7 +59,6 @@ void ESM::CellRef::load (ESMReader& esm, bool wideRefNum)
|
||||
mKey = esm.getHNOString ("KNAM");
|
||||
mTrap = esm.getHNOString ("TNAM");
|
||||
|
||||
mReferenceBlocked = -1;
|
||||
mFltv = 0;
|
||||
esm.getHNOT (mReferenceBlocked, "UNAM");
|
||||
esm.getHNOT (mFltv, "FLTV");
|
||||
|
Loading…
x
Reference in New Issue
Block a user