mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +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");
|
||||
@ -162,4 +166,4 @@ void ESM::CellRef::blank()
|
||||
bool ESM::operator== (const CellRef::RefNum& left, const CellRef::RefNum& right)
|
||||
{
|
||||
return left.mIndex==right.mIndex && left.mContentFile==right.mContentFile;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user