Fix crash when cnc videos loop

This commit is contained in:
Paul Chote
2010-08-11 11:53:01 +12:00
parent 44d7aa14a4
commit 5c6e2a5e42

View File

@@ -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)