From 5c6e2a5e420089af5e408cf237194dabd77fdac1 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 11 Aug 2010 11:53:01 +1200 Subject: [PATCH] Fix crash when cnc videos loop --- OpenRA.FileFormats/Graphics/VqaReader.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.FileFormats/Graphics/VqaReader.cs b/OpenRA.FileFormats/Graphics/VqaReader.cs index d130dfe294..f950aefd3e 100644 --- a/OpenRA.FileFormats/Graphics/VqaReader.cs +++ b/OpenRA.FileFormats/Graphics/VqaReader.cs @@ -137,7 +137,11 @@ namespace OpenRA.FileFormats if (reader.PeekChar() == 0) reader.ReadByte(); } if (++currentFrame == numFrames) + { currentFrame = 0; + cbpCount = 0; + newcbfFormat80.Clear(); + } } public void FrameData(ref Bitmap frame)