1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 19:15:41 +00:00

Merge branch 'fix_oblivion_loading' into 'master'

Fix Oblivion loading

See merge request OpenMW/openmw!3050
This commit is contained in:
Alexei Kotov 2023-05-22 18:18:35 +00:00
commit 401ebfd7f2

View file

@ -532,7 +532,7 @@ namespace ESM4
{ {
if (mCtx.groupStack.size() == 0) if (mCtx.groupStack.size() == 0)
throw std::runtime_error("ESM4::Reader::grp mCtx.groupStack.size is zero"); 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"); throw std::runtime_error("ESM4::Reader::grp - exceeded stack depth");
return (*(mCtx.groupStack.end() - pos - 1)).first; return (*(mCtx.groupStack.end() - pos - 1)).first;