From 503c1eaaeb0722123e54cee15319a06108f514a3 Mon Sep 17 00:00:00 2001 From: rory-cd Date: Sun, 25 Jan 2026 23:46:53 +1100 Subject: [PATCH] FIX: Interface out of bounds error on MSYS2 Added a guard clause to _update_row_layout, preventing a potential out of bounds error with the layout_widths vector. This error was observed in the UI test, which failed on MSYS2. --- coresdk/src/coresdk/interface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/coresdk/src/coresdk/interface.cpp b/coresdk/src/coresdk/interface.cpp index a9d302e9..39167ace 100644 --- a/coresdk/src/coresdk/interface.cpp +++ b/coresdk/src/coresdk/interface.cpp @@ -303,6 +303,7 @@ namespace splashkit_lib void _update_row_layout() { if (container_stack.size() == 0) return; + if (container_stack.back().layout_widths.empty()) return; sk_interface_set_layout(container_stack.back().layout_widths.size(), &container_stack.back().layout_widths[0], container_stack.back().layout_height); }