Commit before modifying crEquipment for item locations

This commit is contained in:
2025-08-26 22:13:40 +01:00
parent e5473d1028
commit 49efe62910
2 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -96,9 +96,7 @@ rmInvItem cid invid w =
itm = w ^?! cWorld . lWorld . items . ix itid
dounequipfunction = effectOnRemove itm cr
removeAnySlotEquipment = fromMaybe id $ do
epos <-
w ^? cWorld . lWorld . creatures . ix cid . crInv . ix invid
>>= \k -> w ^? cWorld . lWorld . items . ix k
epos <- w ^? cWorld . lWorld . items . ix itid
. itLocation
. ilEquipSite
. _Just