1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 06:15:32 +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)
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);
}