diff --git a/src/script/api/script_text.cpp b/src/script/api/script_text.cpp index a546be61c0..89f0249ad2 100644 --- a/src/script/api/script_text.cpp +++ b/src/script/api/script_text.cpp @@ -181,7 +181,7 @@ void ScriptText::SetPadParameterCount(HSQUIRRELVM vm) } } } - sq_pop(vm, top); + sq_settop(vm, top); } EncodedString ScriptText::GetEncodedText()