1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-04 00:15:53 +02:00

Merge pull request #2787 from Nordsoft91/fix-2766

This commit is contained in:
Nordsoft91 2023-09-10 11:27:27 +02:00 committed by GitHub
commit 0756f3caf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public:
return intValue == DEFEAT;
}
EVictoryLossCheckResult invert()
EVictoryLossCheckResult invert() const
{
return EVictoryLossCheckResult(-intValue, messageToOthers, messageToSelf);
}

View File

@ -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.276");
specialVictory.trigger = EventExpression(cond);
mapHeader->victoryMessage.appendTextID("core.vcdesc.2");