Use fromDistinctAscList rather than fromAscList
This commit is contained in:
@@ -48,7 +48,7 @@ updateCombineSections w cfig sss =
|
||||
where
|
||||
mselpos = sss ^. sssExtra . sssSelPos
|
||||
availablelines = getAvailableListLines secondColumnParams cfig
|
||||
allcombs = IM.fromAscList $ zip [0 ..] $ combineList w
|
||||
allcombs = IM.fromDistinctAscList $ zip [0 ..] $ combineList w
|
||||
filtcombs = fromMaybe allcombs $ do
|
||||
str <- mstr
|
||||
invitms <- w ^? hud . hudElement . diSections . sssSections . ix 0 . ssItems
|
||||
@@ -239,7 +239,7 @@ enterCombineInv :: Configuration -> World -> World
|
||||
enterCombineInv cfig w =
|
||||
w & hud . hudElement . subInventory .~ CombineInventory sss
|
||||
where
|
||||
cm' = IM.fromAscList $ zip [0 ..] $ combineList w
|
||||
cm' = IM.fromDistinctAscList . zip [0 ..] $ combineList w
|
||||
cm
|
||||
| null cm' = IM.singleton 0 $ SelectionInfo ["No possible combinations"] 1 False white 0
|
||||
| otherwise = cm'
|
||||
|
||||
Reference in New Issue
Block a user