mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-26 08:41:13 +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
|
void CGKeys::setPropertyDer (ui8 what, ui32 val) //101-108 - enable key for player 1-8
|
||||||
{
|
{
|
||||||
if (what >= 101 && what <= (100 + PlayerColor::PLAYER_LIMIT_I))
|
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
|
bool CGKeys::wasMyColorVisited (PlayerColor player) const
|
||||||
|
Loading…
Reference in New Issue
Block a user