1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

* fixed opening custom campaign selection window

* artifact positions refactored
* vstd::advance allows moving between enum values
This commit is contained in:
mateuszb
2013-02-06 23:24:43 +00:00
parent c3a1d10988
commit af5287c193
26 changed files with 201 additions and 188 deletions

View File

@@ -196,7 +196,7 @@ bool TradeOnMarketplace::applyGh( CGameHandler *gh )
case EMarketMode::CREATURE_EXP:
return gh->sacrificeCreatures(m, hero, r1, val);
case EMarketMode::ARTIFACT_EXP:
return gh->sacrificeArtifact(m, hero, r1);
return gh->sacrificeArtifact(m, hero, static_cast<ArtifactPosition::ArtifactPosition>(r1));
default:
COMPLAIN_AND_RETURN("Unknown exchange mode!");
}