mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
- fixed crash on decompressing some files from gzip stream (reported on
forums)
This commit is contained in:
parent
d17b3a14bd
commit
562dc02b3b
@ -1369,7 +1369,7 @@ void CShowableAnim::clipRect(int posX, int posY, int width, int height)
|
||||
|
||||
void CShowableAnim::show(SDL_Surface * to)
|
||||
{
|
||||
if ( flags & BASE && frame != first)
|
||||
if ( flags & BASE )// && frame != first) // FIXME: results in graphical glytch in Fortress, upgraded hydra's dwelling
|
||||
blitImage(first, group, to);
|
||||
blitImage(frame, group, to);
|
||||
|
||||
@ -1386,7 +1386,7 @@ void CShowableAnim::show(SDL_Surface * to)
|
||||
|
||||
void CShowableAnim::showAll(SDL_Surface * to)
|
||||
{
|
||||
if ( flags & BASE && frame != first)
|
||||
if ( flags & BASE )// && frame != first)
|
||||
blitImage(first, group, to);
|
||||
blitImage(frame, group, to);
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ si64 CCompressedStream::readMore(ui8 *data, si64 size)
|
||||
if (fileEnded)
|
||||
{
|
||||
inflateEnd(inflateState);
|
||||
//vstd::clear_pointer(inflateState);
|
||||
inflateState = nullptr;
|
||||
}
|
||||
return decompressed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user