Skip to content

Commit

Permalink
Adjust key to use lookup, and get item ID if it fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico committed Jul 30, 2024
1 parent 451a1fc commit 0e1b134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/source/rnd/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace rnd {
void Model_LookupByOverride(Model* model, ItemOverride override) {
if (override.key.all != 0) {
u16 resolvedItemId = ItemOverride_SetProgressiveItemDraw(override);
model->itemRow = ItemTable_GetItemRow(resolvedItemId);
model->itemRow = ItemTable_GetItemRow(resolvedItemId == 0 ? override.value.getItemId : resolvedItemId);
}
}

Expand Down

0 comments on commit 0e1b134

Please sign in to comment.