Ignore Creature INDX subrecords

Found in some .ess files, not sure what they mean.
openmw-38
scrawl 9 years ago
parent 020b3add94
commit 0bdfd1b0d7

@ -1,5 +1,7 @@
#include "loadcrea.hpp" #include "loadcrea.hpp"
#include <iostream>
#include "esmreader.hpp" #include "esmreader.hpp"
#include "esmwriter.hpp" #include "esmwriter.hpp"
#include "defs.hpp" #include "defs.hpp"
@ -83,6 +85,12 @@ namespace ESM {
esm.skipHSub(); esm.skipHSub();
isDeleted = true; isDeleted = true;
break; break;
case ESM::FourCC<'I','N','D','X'>::value:
// seems to occur only in .ESS files, unsure of purpose
int index;
esm.getHT(index);
std::cerr << "Creature::load: Unhandled INDX " << index << std::endl;
break;
default: default:
esm.fail("Unknown subrecord"); esm.fail("Unknown subrecord");
break; break;

Loading…
Cancel
Save