1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

- fixed crash on decompressing some files from gzip stream (reported on

forums)
This commit is contained in:
Ivan Savenko 2014-02-08 10:30:10 +00:00
parent d17b3a14bd
commit 562dc02b3b
2 changed files with 3 additions and 3 deletions

View File

@ -1369,7 +1369,7 @@ void CShowableAnim::clipRect(int posX, int posY, int width, int height)
void CShowableAnim::show(SDL_Surface * to) 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(first, group, to);
blitImage(frame, group, to); blitImage(frame, group, to);
@ -1386,7 +1386,7 @@ void CShowableAnim::show(SDL_Surface * to)
void CShowableAnim::showAll(SDL_Surface * to) void CShowableAnim::showAll(SDL_Surface * to)
{ {
if ( flags & BASE && frame != first) if ( flags & BASE )// && frame != first)
blitImage(first, group, to); blitImage(first, group, to);
blitImage(frame, group, to); blitImage(frame, group, to);
} }

View File

@ -164,7 +164,7 @@ si64 CCompressedStream::readMore(ui8 *data, si64 size)
if (fileEnded) if (fileEnded)
{ {
inflateEnd(inflateState); inflateEnd(inflateState);
//vstd::clear_pointer(inflateState); inflateState = nullptr;
} }
return decompressed; return decompressed;
} }