Skip to content

Commit 9cd001d

Browse files
committed
TileInfo: update allocatedTileParts when bumping tilePartInfo array size
fixes #332
1 parent 94de33d commit 9cd001d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/core/cache/LengthCache.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ bool TileInfo::update(uint16_t tileIndex, uint8_t currentTilePart, uint8_t numTi
9999
temp[i] = tilePartInfo[i];
100100
delete[] tilePartInfo;
101101
tilePartInfo = temp;
102+
allocatedTileParts *=2;
102103
}
103104
}
104105
tilePartInfo[currentTilePart] = TilePartInfo(tileIndex, currentTilePart, numTileParts);

0 commit comments

Comments
 (0)