Update PropertyManagementComponent.cpp

Revert "fix stale reference"

This reverts commit 03b17c0374787bca6dfec2da663da74ac76c26fb.

fix stale reference
This commit is contained in:
David Markowitz 2024-05-21 04:30:43 -07:00
parent a153d0a78c
commit f8d5110290

View File

@ -534,6 +534,7 @@ void PropertyManagementComponent::DeleteModel(const LWOOBJID id, const int delet
inventoryComponent->AddItem(model->GetLOT(), 1, eLootSourceType::DELETION, INVALID, model->GetSettings(), LWOOBJID_EMPTY, false);
// figure out how to get the actual item we picked up instead of just the first lot we find
auto* item = inventoryComponent->FindItemByLot(model->GetLOT());
if (item == nullptr) {