update item owner
This commit is contained in:
@@ -24,7 +24,7 @@ func (i Inventory) isMatchOwner(it Item) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if it.Location.LocationType == item.LocationMercenary {
|
if it.Location.LocationType == item.LocationMercenary {
|
||||||
return it.Owner == i.MercID
|
return i.MercID != 0 && it.Owner == i.MercID
|
||||||
}
|
}
|
||||||
return it.Owner == i.PlayerID
|
return it.Owner == i.PlayerID
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user