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:
commit
d291b17c68
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue