mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 04:06:40 +00:00
Merge branch 'applycontentfile_coverity' into 'master'
Fix coverity warning in esm3/globalscript.cpp See merge request OpenMW/openmw!3325
This commit is contained in:
commit
5389d32b5c
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ namespace ESM
|
||||||
mTargetId = esm.getHNORefId("TARG");
|
mTargetId = esm.getHNORefId("TARG");
|
||||||
if (esm.peekNextSub("FRMR"))
|
if (esm.peekNextSub("FRMR"))
|
||||||
mTargetRef = esm.getFormId(true, "FRMR");
|
mTargetRef = esm.getFormId(true, "FRMR");
|
||||||
esm.applyContentFileMapping(mTargetRef);
|
if (!esm.applyContentFileMapping(mTargetRef))
|
||||||
|
{
|
||||||
|
mTargetId = ESM::RefId();
|
||||||
|
mTargetRef = ESM::FormId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GlobalScript::save(ESMWriter& esm) const
|
void GlobalScript::save(ESMWriter& esm) const
|
||||||
|
|
Loading…
Reference in a new issue