diff --git a/src/EventListener.cpp b/src/EventListener.cpp index 17c4902..75104e1 100644 --- a/src/EventListener.cpp +++ b/src/EventListener.cpp @@ -110,13 +110,17 @@ auto EventListener::ProcessEvent( bAdd = a_refBase->Is(RE::FormType::Misc) && a_refBase->As()->HasKeyword(keywordIngot); } else if (bIsFlora || bIsTree || bIsIngredient) { - const auto floraBase = a_refBase->As(); - if (floraBase && (floraBase->produceItem == produceItem || floraBase->produceItem == baseObj)) { + if (a_refBase == produceItem) { bAdd = true; } else { - const auto treeBase = a_refBase->As(); - if (treeBase && (treeBase->produceItem == produceItem || treeBase->produceItem == baseObj)) { + const auto floraBase = a_refBase->As(); + if (floraBase && (floraBase->produceItem == produceItem || floraBase->produceItem == baseObj)) { bAdd = true; + } else { + const auto treeBase = a_refBase->As(); + if (treeBase && (treeBase->produceItem == produceItem || treeBase->produceItem == baseObj)) { + bAdd = true; + } } } }