mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	CGKeys::wasMyColorVisited: fix to not change playerKeyMap on client
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user