From 9565ce198fe94c4057cadbfee648d21ebefc089f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Aug 2019 17:58:00 +0200 Subject: [PATCH] fixed a crash on loading saved maps --- mapeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index 3fb3ad41..39bc9ec1 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -528,7 +528,7 @@ namespace mapstream { if(ds == 1 && dual::state == 0) dual::enable(); if(ds == 0 && dual::state == 1) dual::disable(); dual::split_or_do([&] { load_only_map(f); }); - dual::assign_landsides(); + if(dual::state) dual::assign_landsides(); if(f.vernum >= 0xA61A) load_usershapes(f); return true;