From 3656b2ef6753d6629e212de9ffdbb248a7568998 Mon Sep 17 00:00:00 2001 From: Tomasz Zielinski Date: Thu, 8 Sep 2022 22:34:23 +0200 Subject: [PATCH] Fixes in new map settings save / load --- mapeditor/windownewmap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mapeditor/windownewmap.cpp b/mapeditor/windownewmap.cpp index 2c40be4d1..ad6815a41 100644 --- a/mapeditor/windownewmap.cpp +++ b/mapeditor/windownewmap.cpp @@ -84,16 +84,16 @@ void WindowNewMap::loadUserSettings() { case EWaterContent::RANDOM: ui->waterOpt1->setChecked(true); break; - case EWaterContent::NORMAL: - ui->waterOpt2->setChecked(true); break; - case EWaterContent::ISLANDS: - ui->waterOpt3->setChecked(true); break; case EWaterContent::NONE: + ui->waterOpt2->setChecked(true); break; + case EWaterContent::NORMAL: + ui->waterOpt3->setChecked(true); break; + case EWaterContent::ISLANDS: ui->waterOpt4->setChecked(true); break; } } - auto monsterStrength = s.value(newMapWaterContent); + auto monsterStrength = s.value(newMapMonsterStrength); if (monsterStrength.isValid()) { switch (monsterStrength.toInt()) @@ -160,7 +160,7 @@ void WindowNewMap::saveUserSettings() monster = EMonsterStrength::GLOBAL_NORMAL; else if(ui->monsterOpt4->isChecked()) monster = EMonsterStrength::GLOBAL_STRONG; - s.setValue(newMapMonsterStrength, static_cast(water)); + s.setValue(newMapMonsterStrength, static_cast(monster)); auto templateName = ui->templateCombo->currentText(); if (templateName.size())