mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 14:09: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:
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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue