mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
CGKeys::wasMyColorVisited: fix to not change playerKeyMap on client
This commit is contained in:
parent
a90b657b86
commit
94bb5b9901
@ -780,7 +780,7 @@ void CGKeys::setPropertyDer (ui8 what, ui32 val) //101-108 - enable key for play
|
||||
|
||||
bool CGKeys::wasMyColorVisited (PlayerColor player) const
|
||||
{
|
||||
if (vstd::contains(playerKeyMap[player], subID)) //creates set if it's not there
|
||||
if(playerKeyMap.count(player) && vstd::contains(playerKeyMap[player], subID))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user