1
0
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:
Arseniy Shestakov 2016-08-25 16:46:29 +03:00
parent a90b657b86
commit 94bb5b9901

View File

@ -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;