mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Allow Script records with missing SCDT (precompiled code, not used anyway)
Not sure on the exact conditions, but this was missing in a plugin that I made in the TES-CS, while vanilla MW would load it just fine.
This commit is contained in:
parent
628d57f18c
commit
1c178768f5
@ -64,8 +64,11 @@ void Script::load(ESMReader &esm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Script mData
|
// Script mData
|
||||||
mScriptData.resize(mData.mScriptDataSize);
|
if (esm.isNextSub("SCDT"))
|
||||||
esm.getHNExact(&mScriptData[0], mScriptData.size(), "SCDT");
|
{
|
||||||
|
mScriptData.resize(mData.mScriptDataSize);
|
||||||
|
esm.getHExact(&mScriptData[0], mScriptData.size());
|
||||||
|
}
|
||||||
|
|
||||||
// Script text
|
// Script text
|
||||||
mScriptText = esm.getHNOString("SCTX");
|
mScriptText = esm.getHNOString("SCTX");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user