Selaa lähdekoodia

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

Ivan Savenko 11 vuotta sitten
vanhempi
sitoutus
562dc02b3b
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      client/CAnimation.cpp
  2. 1 1
      lib/filesystem/CCompressedStream.cpp

+ 2 - 2
client/CAnimation.cpp

@@ -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);
 }

+ 1 - 1
lib/filesystem/CCompressedStream.cpp

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