From 30f778fc66d74580ff89a9ee1ba5b02dbf039226 Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 22 Jun 2023 18:47:10 -0700 Subject: [PATCH] Small scrolling texture fix --- src/game/scroll_targets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/scroll_targets.c b/src/game/scroll_targets.c index 5cd34c06..6502f8ac 100644 --- a/src/game/scroll_targets.c +++ b/src/game/scroll_targets.c @@ -81,7 +81,7 @@ struct ScrollTarget* find_or_create_scroll_targets(u32 id) { */ void add_vtx_scroll_target(u32 id, Vtx *vtx, u32 size) { struct ScrollTarget *scroll = find_or_create_scroll_targets(id); - if (!scroll || !scroll->vertices) { return; } + if (!scroll) { return; } Vtx* *newArray; u32 oldSize = sizeof(void*) * scroll->size; u32 newSize = oldSize + (sizeof(void*) * size);