TSAGE: Fixed bug with decoding large compressed resources

This commit is contained in:
Paul Gilbert 2011-04-02 18:50:02 +11:00
parent cbfe04fc1f
commit a8bed05922

View File

@ -183,7 +183,7 @@ void RlbManager::loadSection(uint32 fileOffset) {
re->fileOffset = offset;
re->isCompressed = type != 0;
re->size = ((sizeHi & 0xF) << 16) | size;
re->uncompressedSize = ((sizeHi & 0xF) << 16) | uncSize;
re->uncompressedSize = ((sizeHi & 0xF0) << 12) | uncSize;
_resources.push_back(*re);
}