1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 13:11:32 +00:00

Merge branch 'refactor/script-cleanup' into 'master'

Use pop_back to shrink the stack

See merge request OpenMW/openmw!1597
This commit is contained in:
jvoisin 2022-01-30 18:50:01 +00:00
commit d291b17c68

View file

@ -100,7 +100,7 @@ namespace Interpreter
if (mStack.empty()) if (mStack.empty())
throw std::runtime_error ("stack underflow"); throw std::runtime_error ("stack underflow");
mStack.resize (mStack.size()-1); mStack.pop_back();
} }
Data& Runtime::operator[] (int Index) Data& Runtime::operator[] (int Index)