diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 537eb789..3813c162 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1508,6 +1508,12 @@ void Graphics::textboxadjust(void) void Graphics::setlinegap(int customvalue) { + if (!INBOUNDS_VEC(m, textboxes)) + { + vlog_error("setlinegap() out-of-bounds!"); + return; + } + textboxes[m].linegap = customvalue; textboxes[m].resize(); }