mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Throw exception on failed write
This commit is contained in:
parent
5f1da29881
commit
4f683d1ee9
@ -169,7 +169,7 @@ namespace ESM
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (isSet() && !hasContentFile())
|
if (isSet() && !hasContentFile())
|
||||||
Log(Debug::Error) << "Generated RefNum can not be saved in 32bit format";
|
throw std::runtime_error("Generated RefNum can not be saved in 32bit format");
|
||||||
int refNum = (mIndex & 0xffffff) | ((hasContentFile() ? mContentFile : 0xff) << 24);
|
int refNum = (mIndex & 0xffffff) | ((hasContentFile() ? mContentFile : 0xff) << 24);
|
||||||
esm.writeHNT(tag, refNum, 4);
|
esm.writeHNT(tag, refNum, 4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user