mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Merge branch 'fix_oblivion_loading' into 'master'
Fix Oblivion loading See merge request OpenMW/openmw!3050
This commit is contained in:
commit
401ebfd7f2
@ -532,7 +532,7 @@ namespace ESM4
|
||||
{
|
||||
if (mCtx.groupStack.size() == 0)
|
||||
throw std::runtime_error("ESM4::Reader::grp mCtx.groupStack.size is zero");
|
||||
if (pos <= mCtx.groupStack.size() - 1)
|
||||
if (pos > mCtx.groupStack.size() - 1)
|
||||
throw std::runtime_error("ESM4::Reader::grp - exceeded stack depth");
|
||||
|
||||
return (*(mCtx.groupStack.end() - pos - 1)).first;
|
||||
|
Loading…
x
Reference in New Issue
Block a user