From 1c1af89bb92703ccedc58b7b5a9e5a8634f3da6a Mon Sep 17 00:00:00 2001 From: penev92 Date: Thu, 18 Feb 2021 01:57:03 +0200 Subject: [PATCH] Fixed D2k VQA videos crashing the game --- OpenRA.Mods.Cnc/FileFormats/VqaReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs b/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs index 1aac556a909c..dfbfa8188343 100644 --- a/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs +++ b/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs @@ -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();