mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-16 04:58:32 +00:00
Move to shared pointer
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "InventoryComponent.h"
|
||||
|
||||
void NpcPirateServer::OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) {
|
||||
auto* inventory = target->GetComponent<InventoryComponent>();
|
||||
auto inventory = target->GetComponent<InventoryComponent>();
|
||||
if (inventory != nullptr && missionID == 1881) {
|
||||
auto* luckyShovel = inventory->FindItemByLot(14591);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user