1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-06 18:57:02 +00:00

drawing tool: do not crash when drawcell is not set

This commit is contained in:
Zeno Rogue 2025-02-23 22:59:29 +01:00
parent 600f02668d
commit 5ab802a561

View File

@ -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;