diff --git a/lib/gameState/EVictoryLossCheckResult.h b/lib/gameState/EVictoryLossCheckResult.h index 60917562c..1091b4a3a 100644 --- a/lib/gameState/EVictoryLossCheckResult.h +++ b/lib/gameState/EVictoryLossCheckResult.h @@ -50,7 +50,7 @@ public: return intValue == DEFEAT; } - EVictoryLossCheckResult invert() + EVictoryLossCheckResult invert() const { return EVictoryLossCheckResult(-intValue, messageToOthers, messageToSelf); } diff --git a/lib/mapping/MapFormatH3M.cpp b/lib/mapping/MapFormatH3M.cpp index e7ab538a9..e49100db6 100644 --- a/lib/mapping/MapFormatH3M.cpp +++ b/lib/mapping/MapFormatH3M.cpp @@ -384,7 +384,7 @@ void CMapLoaderH3M::readVictoryLossConditions() cond.value = reader->readInt32(); specialVictory.effect.toOtherMessage.appendTextID("core.genrltxt.277"); - specialVictory.onFulfill.appendTextID("core.genrltxt.6"); + specialVictory.onFulfill.appendTextID("core.genrltxt.278"); specialVictory.trigger = EventExpression(cond); mapHeader->victoryMessage.appendTextID("core.vcdesc.2");