From 995f30bff025ea9f75238660b06e0b3d121db7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Tue, 26 Aug 2025 16:00:01 +0200 Subject: [PATCH] Codefix bd1a3fe0: Incorrect handling of squirrel stack (#14538) --- src/script/api/script_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()