fixed bug causing some items to be marked in inventory after selling them to vendor

This commit is contained in:
Héctor Giménez
2023-09-23 15:42:09 +09:00
parent 4a74a310ed
commit 51ec9e0dca
3 changed files with 12 additions and 19 deletions

View File

@@ -76,7 +76,7 @@ func (gd *GameReader) Items(pu data.PlayerUnit, hover data.HoverData) data.Items
location := item.LocationUnknown
switch itemLoc {
case 0:
if 0x00002000&flags != 0 {
if 0x00002000&flags != 0 || (data.UnitID(itemOwnerNPC) != pu.ID) {
location = item.LocationVendor
break
} else if invPage == 0 {