Skip to content

Commit 6109f1c

Browse files
authored
Use oidPossessor parameter value for AcquiredFrom property. (#839)
1 parent ba12113 commit 6109f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NWN.Anvil/src/main/API/Events/Native/ItemEvents/OnCreatureAcquireItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static int OnAcquireItem(void* pCreature, void** pItem, uint oidPossesso
6969
{
7070
AcquiredBy = CNWSCreature.FromPointer(pCreature).ToNwObject<NwCreature>()!,
7171
Item = item,
72-
AcquiredFrom = item.Possessor,
72+
AcquiredFrom = oidPossessor.ToNwObject<NwGameObject>(),
7373
};
7474

7575
eventData.Result = new Lazy<bool>(() => !eventData.Skip && Hook.CallOriginal(pCreature, pItem, oidPossessor, oidTargetRepository, x, y, bOriginatingFromScript, bDisplayFeedback).ToBool());

0 commit comments

Comments
 (0)