From 0e1b134869095627fa7f69bede5e28b65a468e91 Mon Sep 17 00:00:00 2001 From: Phlex Date: Tue, 30 Jul 2024 07:37:03 -0600 Subject: [PATCH] Adjust key to use lookup, and get item ID if it fails. --- code/source/rnd/models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/source/rnd/models.cpp b/code/source/rnd/models.cpp index 4054e8a..558c74a 100644 --- a/code/source/rnd/models.cpp +++ b/code/source/rnd/models.cpp @@ -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); } }