From 5ab802a56141f052ca2755060346c6eb6615cd45 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Feb 2025 22:59:29 +0100 Subject: [PATCH] drawing tool: do not crash when drawcell is not set --- mapeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index a9e387aa..8c42f782 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -3205,7 +3205,7 @@ EX namespace mapeditor { } } - if(cmode & sm::DRAW) { + if(cmode & sm::DRAW && !drawing_tool) { if(c == drawcell && EDITING_TRIANGLES && mapeditor::editingShape(group, id)) { if(!us) return false;