1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed decompression of slayer.h3c from french version from gog.com

This commit is contained in:
Ivan Savenko
2024-01-31 16:00:42 +02:00
parent 049c352511
commit 6d0803dab6
4 changed files with 31 additions and 12 deletions

View File

@@ -162,9 +162,9 @@ si64 CCompressedStream::readMore(ui8 *data, si64 size)
break;
default:
if (inflateState->msg == nullptr)
throw std::runtime_error("Decompression error. Return code was " + std::to_string(ret));
throw DecompressionException("Error code " + std::to_string(ret));
else
throw std::runtime_error(std::string("Decompression error: ") + inflateState->msg);
throw DecompressionException(inflateState->msg);
}
}
while (!endLoop && inflateState->avail_out != 0 );