From e9314285cc797bad29b3621d713ad2a0703c4d2e Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 11 Dec 2020 07:24:37 +0100
Subject: [PATCH] Fix fail failure.

---
 rogue_chat.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rogue_chat.html b/rogue_chat.html
index ba49e86..23d1a57 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -772,7 +772,7 @@ let tui = {
     function fail(msg, return_mode) {
         tui.log_msg('? ' + msg);
         terminal.blink_screen();
-        this.switch_mode(return_mode);
+        tui.switch_mode(return_mode);
     }
 
     if (this.mode && this.mode.name == 'control_tile_draw') {
-- 
2.30.2