Do not allow write variant of string as local variable

To be consitent with read where it's not allowed.
pull/593/head
elsid 4 years ago
parent 86719c26b3
commit 03fc3ec803
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -98,6 +98,9 @@ void ESM::VariantStringData::write (ESMWriter& esm, Variant::Format format, VarT
if (format==Variant::Format_Info)
throw std::runtime_error ("info variables of type string not supported");
if (format==Variant::Format_Local)
throw std::runtime_error ("local variables of type string not supported");
// GMST
esm.writeHNString ("STRV", mValue);
}

Loading…
Cancel
Save