mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 10:01:46 +00:00
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
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:
parent
0e65a1ddd6
commit
4f9a51ff90
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue