mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-30 21:51:33 +00:00
Update PropertyManagementComponent.cpp
Revert "fix stale reference" This reverts commit 03b17c0374787bca6dfec2da663da74ac76c26fb. fix stale reference
This commit is contained in:
parent
a153d0a78c
commit
f8d5110290
@ -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);
|
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());
|
auto* item = inventoryComponent->FindItemByLot(model->GetLOT());
|
||||||
|
|
||||||
if (item == nullptr) {
|
if (item == nullptr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user