mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
minor fixes:
- don't crash if image can't be player-colored (no palette) - fixes #1447 - compile fix
This commit is contained in:
@ -172,7 +172,6 @@ void CPicture::colorizeAndConvert(PlayerColor player)
|
||||
void CPicture::colorize(PlayerColor player)
|
||||
{
|
||||
assert(bg);
|
||||
assert(bg->format->BitsPerPixel == 8);
|
||||
graphics->blueToPlayersAdv(bg, player);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user