mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:15:38 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue