From 447e01aba3cefcc9ebccfb355a6e8cad03b49247 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Fri, 23 Dec 2022 01:39:46 +0400 Subject: [PATCH] Proper defeat message --- mapeditor/mapsettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapeditor/mapsettings.cpp b/mapeditor/mapsettings.cpp index a7f93240f..c8afc1a31 100644 --- a/mapeditor/mapsettings.cpp +++ b/mapeditor/mapsettings.cpp @@ -668,7 +668,7 @@ void MapSettings::on_pushButton_clicked() specialDefeat.description.clear(); // TODO: display in quest window controller.map()->defeatIconIndex = lossCondition; - controller.map()->defeatMessage = VLC->generaltexth->lossCondtions[1]; //TODO: get proper text + controller.map()->defeatMessage = VLC->generaltexth->lossCondtions[size_t(lossCondition) + 1]; switch(lossCondition) {