Only support NiSequenceStreamHelper as a Kf root

Newer versions of the Nif foramt may have other record types, but we don't
support those.
actorid
Chris Robinson 12 years ago
parent 8e38dc410f
commit bf94ffb839

@ -832,13 +832,13 @@ public:
const Nif::Record *r = nif->getRoot(0);
assert(r != NULL);
const Nif::NiSequenceStreamHelper *seq = dynamic_cast<const Nif::NiSequenceStreamHelper*>(r);
if(seq == NULL)
if(r->recType != Nif::RC_NiSequenceStreamHelper)
{
nif->warn("First root was not a NiSequenceStreamHelper, but a "+
r->recName+".");
return;
}
const Nif::NiSequenceStreamHelper *seq = static_cast<const Nif::NiSequenceStreamHelper*>(r);
Nif::ExtraPtr extra = seq->extra;
if(extra.empty() || extra->recType != Nif::RC_NiTextKeyExtraData)

Loading…
Cancel
Save