Ticket #8520: scummvm-kyrabmp.diff

File scummvm-kyrabmp.diff, 548 bytes (added by SF/njoly, 15 years ago)
  • engines/kyra/resource.cpp

     
    336336        debugC( 9, kDebugLevelMain,"KyraEngine::copyBitmap('%s', %d, %d, 0x%X)", filename, tempPage, dstPage, palData);
    337337        uint32 fileSize;
    338338        uint8 *srcData = _res->fileData(filename, &fileSize);
     339        assert(srcData);
    339340        uint8 compType = srcData[2];
    340341        uint32 imgSize = READ_LE_UINT32(srcData + 4);
    341342        uint16 palSize = READ_LE_UINT16(srcData + 8);