Force parsing order

This commit is contained in:
vailkyte 2023-09-01 22:19:06 -05:00 committed by GitHub
parent 7542de74e7
commit 816cdf2c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ static void render_line(GB_gameboy_t *gb)
while (gb->n_visible_objs) {
unsigned object_index = gb->visible_objs[gb->n_visible_objs - 1];
unsigned priority = gb->object_priority == GB_OBJECT_PRIORITY_X? 0 : object_index;
unsigned priority = (gb->object_priority == GB_OBJECT_PRIORITY_X)? 0 : object_index;
const object_t *object = &objects[object_index];
gb->n_visible_objs--;