mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Avoid crash on invalid H3 data
This commit is contained in:
@@ -205,6 +205,8 @@ void SDLImage::exportBitmap(const boost::filesystem::path& path) const
|
||||
|
||||
void SDLImage::playerColored(PlayerColor player)
|
||||
{
|
||||
if (!surf)
|
||||
return;
|
||||
graphics->blueToPlayersAdv(surf, player);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user