1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
This commit is contained in:
Michał W. Urbańczyk 2013-09-04 22:57:41 +00:00
parent f217c61131
commit 6fc87d0df1

View File

@ -6500,7 +6500,12 @@ void CGPyramid::battleFinished(const CGHeroInstance *hero, const BattleResult &r
void CGKeys::setPropertyDer (ui8 what, ui32 val) //101-108 - enable key for player 1-8
{
if (what >= 101 && what <= (100 + PlayerColor::PLAYER_LIMIT_I))
playerKeyMap.find(PlayerColor(what-101))->second.insert((ui8)val);
{
PlayerColor player(what-101);
playerKeyMap[player].insert((ui8)val);
}
else
logGlobal->errorStream() << boost::format("Unexpected properties requested to set: what=%d, val=%d") % (int)what % val;
}
bool CGKeys::wasMyColorVisited (PlayerColor player) const