mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04: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");
|
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;
|
mScale = 1.0;
|
||||||
esm.getHNOT (mScale, "XSCL");
|
esm.getHNOT (mScale, "XSCL");
|
||||||
|
|
||||||
@ -54,7 +59,6 @@ void ESM::CellRef::load (ESMReader& esm, bool wideRefNum)
|
|||||||
mKey = esm.getHNOString ("KNAM");
|
mKey = esm.getHNOString ("KNAM");
|
||||||
mTrap = esm.getHNOString ("TNAM");
|
mTrap = esm.getHNOString ("TNAM");
|
||||||
|
|
||||||
mReferenceBlocked = -1;
|
|
||||||
mFltv = 0;
|
mFltv = 0;
|
||||||
esm.getHNOT (mReferenceBlocked, "UNAM");
|
esm.getHNOT (mReferenceBlocked, "UNAM");
|
||||||
esm.getHNOT (mFltv, "FLTV");
|
esm.getHNOT (mFltv, "FLTV");
|
||||||
@ -162,4 +166,4 @@ void ESM::CellRef::blank()
|
|||||||
bool ESM::operator== (const CellRef::RefNum& left, const CellRef::RefNum& right)
|
bool ESM::operator== (const CellRef::RefNum& left, const CellRef::RefNum& right)
|
||||||
{
|
{
|
||||||
return left.mIndex==right.mIndex && left.mContentFile==right.mContentFile;
|
return left.mIndex==right.mIndex && left.mContentFile==right.mContentFile;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user