Fixed a bug in akgl_heap_next_string, made screen width and height load from properties, not on the game object

This commit is contained in:
2026-05-13 04:55:19 -04:00
parent 23dbc7d985
commit 36dfd47a06
6 changed files with 70 additions and 13 deletions

View File

@@ -98,6 +98,7 @@ akerr_ErrorContext *akgl_heap_next_string(akgl_String **dest)
continue;
}
*dest = &HEAP_STRING[i];
HEAP_STRING[i].refcount += 1;
SUCCEED_RETURN(errctx);
}
FAIL_RETURN(errctx, AKERR_HEAP, "Unable to find unused string on the heap");