Small scrolling texture fix

This commit is contained in:
MysterD 2023-06-22 18:47:10 -07:00
parent c7a557d870
commit 2ad4cfceaa
1 changed files with 1 additions and 1 deletions

View File

@ -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);