mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Simplify infs2.
This commit is contained in:
@@ -350,10 +350,10 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
|
||||
}
|
||||
else
|
||||
{
|
||||
int res = bitmaph->infs2(data, e->size, e->realSize, pcx);
|
||||
if (res != 0)
|
||||
if (!bitmaph->infs2(data, e->size, e->realSize, pcx))
|
||||
{
|
||||
tlog2<<"an error "<<res<<" occurred while extracting file "<<fname<<std::endl;
|
||||
tlog2<<"an error occurred while extracting file "<<fname<<std::endl;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
CPCXConv cp;
|
||||
|
||||
Reference in New Issue
Block a user