Merge pull request #561 from vailkyte/tes

Force parsing order
This commit is contained in:
Lior Halphon 2023-09-02 13:38:08 +03:00 committed by GitHub
commit 4f69e4e86c
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--;