Fix bugs in drag pickup when releasing mouse outside of inventory list
This commit is contained in:
@@ -21,6 +21,7 @@ checkInvSlotsYou it w = do
|
||||
guard $ crNumFreeSlots (w ^. cWorld . lWorld . items) ycr >= itInvHeight it
|
||||
Just . NInt . IM.newKey . _unNIntMap $ _crInv ycr
|
||||
|
||||
-- the intmap should be _items
|
||||
crNumFreeSlots :: IM.IntMap Item -> Creature -> Int
|
||||
crNumFreeSlots m cr = maxInvSlots - invSize (fmap f (_crInv cr))
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user