diff --git a/kit/Kit.cpp b/kit/Kit.cpp index d098cd773..759e78e24 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -1080,6 +1080,11 @@ public: LOG_TRC("Encoded tile #" << tileIndex << " at (" << positionX << "," << positionY << ") with oldWireId=" << tiles[tileIndex].getOldWireId() << ", hash=" << hash << " wireId: " << wireId << " in " << imgSize << " bytes."); + if (imgSize == 0) + { + LOG_ERR("Encoded 0-sized tile!"); + assert(!"0-sized tile enocded!"); + } tiles[tileIndex].setWireId(wireId); tiles[tileIndex].setImgSize(imgSize); tileIndex++;