mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fix checking PlayerColor's for validness
This commit is contained in:
@@ -46,7 +46,7 @@ ColorRGBA CMinimapInstance::getTileColor(const int3 & pos) const
|
||||
if(player == PlayerColor::NEUTRAL)
|
||||
return graphics->neutralColor;
|
||||
|
||||
if (player < PlayerColor::PLAYER_LIMIT)
|
||||
if (player.isValidPlayer())
|
||||
return graphics->playerColors[player.getNum()];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user