diff --git a/lib/mapping/MapFormatJson.cpp b/lib/mapping/MapFormatJson.cpp index 8aa448432..c1f95a270 100644 --- a/lib/mapping/MapFormatJson.cpp +++ b/lib/mapping/MapFormatJson.cpp @@ -91,8 +91,6 @@ std::string MapObjectResolver::encode(si32 identifier) const namespace HeaderDetail { - static const ui8 difficultyDefault = 1;//normal - static const std::vector difficultyMap = { "EASY", @@ -393,7 +391,7 @@ void CMapFormatJson::serializeHeader(JsonSerializeFormat & handler) handler.serializeInt("heroLevelLimit", mapHeader->levelLimit, 0); //todo: support arbitrary percentage - handler.serializeEnum("difficulty", mapHeader->difficulty, HeaderDetail::difficultyDefault, HeaderDetail::difficultyMap); + handler.serializeEnum("difficulty", mapHeader->difficulty, HeaderDetail::difficultyMap); serializePlayerInfo(handler);