update item owner

This commit is contained in:
vietdungdev
2026-05-24 20:37:21 +07:00
parent 7ba04695d8
commit 41abbe5217

View File

@@ -24,7 +24,7 @@ func (i Inventory) isMatchOwner(it Item) bool {
}
if it.Location.LocationType == item.LocationMercenary {
return it.Owner == i.MercID
return i.MercID != 0 && it.Owner == i.MercID
}
return it.Owner == i.PlayerID
}