1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 13:39:42 +00:00

Do not allow write variant of string as local variable

To be consitent with read where it's not allowed.
This commit is contained in:
elsid 2021-04-04 22:51:21 +02:00
parent 86719c26b3
commit 03fc3ec803
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

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