From e2a65d21d1f2fae0cf4bb7f545956d78f60fa0c5 Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Wed, 30 Apr 2025 16:40:19 +0200 Subject: [PATCH] Check the world in `openCommand` before opening it. fixes #1372 --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index 938a79f0..f717545b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -303,6 +303,7 @@ fn openChat() void { gui.windowlist.chat.input.select(); } fn openCommand() void { + if(game.world == null) return; openChat(); gui.windowlist.chat.input.clear(); gui.windowlist.chat.input.inputCharacter('/');