From 1832ed6a48204f414dc70347a2f5383d484ba599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:26:43 +0200 Subject: [PATCH] Use pop_back to shrink the stack --- components/interpreter/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/interpreter/runtime.cpp b/components/interpreter/runtime.cpp index 1cb8f558c9..8170526f35 100644 --- a/components/interpreter/runtime.cpp +++ b/components/interpreter/runtime.cpp @@ -100,7 +100,7 @@ namespace Interpreter if (mStack.empty()) throw std::runtime_error ("stack underflow"); - mStack.resize (mStack.size()-1); + mStack.pop_back(); } Data& Runtime::operator[] (int Index)