Fixed D2k VQA videos crashing the game

This commit is contained in:
penev92
2021-02-18 01:57:03 +02:00
committed by abcdefg30
parent 536c130a39
commit 1c1af89bb9

View File

@@ -326,7 +326,7 @@ namespace OpenRA.Mods.Cnc.FileFormats
// Annoyingly, the complete table is not applied until the frame
// *after* the one that contains the 8th chunk.
// Do we have a set of partial lookup tables ready to apply?
if (currentChunkBuffer == chunkBufferParts)
if (currentChunkBuffer == chunkBufferParts && chunkBufferParts != 0)
{
if (!cbpIsCompressed)
cbf = (byte[])cbp.Clone();