about summary refs log tree commit diff
path: root/src/Xanthous/App.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xanthous/App.hs')
-rw-r--r--src/Xanthous/App.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Xanthous/App.hs b/src/Xanthous/App.hs
index 2fd821af1cf7..577466328101 100644
--- a/src/Xanthous/App.hs
+++ b/src/Xanthous/App.hs
@@ -300,8 +300,7 @@ handleCommand GoDown = do
     let newLevelNum = Levels.pos levs + 1
     levs' <- nextLevel (levelToEntityMap <$> genLevel newLevelNum) levs
     cEID <- use characterEntityID
-    pCharacter <- use $ entities . at cEID
-    entities . at cEID .= Nothing
+    pCharacter <- entities . at cEID <<.= Nothing
     levels .= levs'
     entities . at cEID .= pCharacter
   else say_ ["cant", "goDown"]