|
|
@ -121,15 +121,8 @@ void ESM4::Creature::load(ESM4::Reader& reader)
|
|
|
|
case ESM4::SUB_NAM1: reader.getZString(mBloodDecal); break;
|
|
|
|
case ESM4::SUB_NAM1: reader.getZString(mBloodDecal); break;
|
|
|
|
case ESM4::SUB_NIFZ:
|
|
|
|
case ESM4::SUB_NIFZ:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string str;
|
|
|
|
if (!reader.getZeroTerminatedStringArray(mNif))
|
|
|
|
if (!reader.getZString(str))
|
|
|
|
|
|
|
|
throw std::runtime_error ("CREA NIFZ data read error");
|
|
|
|
throw std::runtime_error ("CREA NIFZ data read error");
|
|
|
|
|
|
|
|
|
|
|
|
std::stringstream ss(str);
|
|
|
|
|
|
|
|
std::string file;
|
|
|
|
|
|
|
|
while (std::getline(ss, file, '\0')) // split the strings
|
|
|
|
|
|
|
|
mNif.push_back(file);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case ESM4::SUB_NIFT:
|
|
|
|
case ESM4::SUB_NIFT:
|
|
|
@ -149,15 +142,8 @@ void ESM4::Creature::load(ESM4::Reader& reader)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case ESM4::SUB_KFFZ:
|
|
|
|
case ESM4::SUB_KFFZ:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string str;
|
|
|
|
if (!reader.getZeroTerminatedStringArray(mKf))
|
|
|
|
if (!reader.getZString(str))
|
|
|
|
|
|
|
|
throw std::runtime_error ("CREA KFFZ data read error");
|
|
|
|
throw std::runtime_error ("CREA KFFZ data read error");
|
|
|
|
|
|
|
|
|
|
|
|
std::stringstream ss(str);
|
|
|
|
|
|
|
|
std::string file;
|
|
|
|
|
|
|
|
while (std::getline(ss, file, '\0')) // split the strings
|
|
|
|
|
|
|
|
mKf.push_back(file);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case ESM4::SUB_TPLT: reader.get(mBaseTemplate); break; // FO3
|
|
|
|
case ESM4::SUB_TPLT: reader.get(mBaseTemplate); break; // FO3
|
|
|
|