Skip to content

Commit

Permalink
Fixed D2k VQA videos crashing the game
Browse files Browse the repository at this point in the history
  • Loading branch information
penev92 authored and abcdefg30 committed Feb 19, 2021
1 parent 536c130 commit 1c1af89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Cnc/FileFormats/VqaReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void DecodeVQFR(Stream s, string parentType = "VQFR")
// 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();
Expand Down

0 comments on commit 1c1af89

Please sign in to comment.