From b480492dedfd5ace7d494f3a29df1c1817810bfc Mon Sep 17 00:00:00 2001 From: def Date: Sat, 16 May 2020 08:17:48 +0200 Subject: [PATCH] Don't count freshly loaded map as modified (fixes #2178) The reason is that we increased the sensitivity of the modified flag to include adding layers and groups, and simply loading the map already adds those, so every loaded map was considered modified. --- src/game/editor/io.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/editor/io.cpp b/src/game/editor/io.cpp index 2c3240eb3..633669bcc 100644 --- a/src/game/editor/io.cpp +++ b/src/game/editor/io.cpp @@ -1294,6 +1294,7 @@ int CEditorMap::Load(class IStorage *pStorage, const char *pFileName, int Storag else return 0; + m_Modified = false; return 1; }