1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 20:49:56 +00:00

Don't silently skip unknown NPC subrecords

This commit is contained in:
scrawl 2014-07-03 21:00:12 +02:00
parent 742d008765
commit ad90d20ad8

View file

@ -10,8 +10,6 @@ namespace ESM
void NPC::load(ESMReader &esm) void NPC::load(ESMReader &esm)
{ {
//mNpdt52.mGold = -10;
mPersistent = esm.getRecordFlags() & 0x0400; mPersistent = esm.getRecordFlags() & 0x0400;
mModel = esm.getHNOString("MODL"); mModel = esm.getHNOString("MODL");
@ -63,7 +61,6 @@ void NPC::load(ESMReader &esm)
} }
} }
mAiPackage.load(esm); mAiPackage.load(esm);
esm.skipRecord();
} }
void NPC::save(ESMWriter &esm) const void NPC::save(ESMWriter &esm) const
{ {