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:
parent
86719c26b3
commit
03fc3ec803
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue