this code is so broken and it's my fault
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled

This commit is contained in:
Isaac0-dev 2025-12-09 15:29:44 +10:00
parent 0e65a1ddd6
commit 4f9a51ff90

View file

@ -121,7 +121,10 @@ void uv_update_scroll(void) {
if (bhv == 3 || bhv > SCROLL_UV_Y) { return; }
struct ScrollTarget *scroll = get_scroll_targets(vtxIndex, vertCount, offset);
if (!scroll || !scroll->vertices) { return; }
if (!scroll || !scroll->vertices || scroll->size == 0) { return; }
vertCount = MIN(vertCount, (u16) scroll->size);
if (vertCount == 0) { return; }
Vtx* *verts = scroll->vertices;