mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fixed #1426.
This commit is contained in:
parent
f217c61131
commit
6fc87d0df1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user