From b0ffcc267dd531fff494a14d1fad56e595bf0b2a Mon Sep 17 00:00:00 2001 From: opsu <50782355+opsuu@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:59:37 +0200 Subject: [PATCH] fix out of bounds array access (#441) Woops! Thanks! --- src/she/sdl2/sdl2_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/she/sdl2/sdl2_display.cpp b/src/she/sdl2/sdl2_display.cpp index e1133c152..b07f67598 100644 --- a/src/she/sdl2/sdl2_display.cpp +++ b/src/she/sdl2/sdl2_display.cpp @@ -273,7 +273,7 @@ namespace she { void applyCursor(SDL_SystemCursor id) { - if (id <= m_cursors.size()) { + if (id >= m_cursors.size()) { m_cursors.resize(id + 1); } if (!m_cursors[id]) {