mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Throw exception on failed write
This commit is contained in:
parent
5f1da29881
commit
4f683d1ee9
@ -169,7 +169,7 @@ namespace ESM
|
||||
else
|
||||
{
|
||||
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);
|
||||
esm.writeHNT(tag, refNum, 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user