Fix crash when cnc videos loop
This commit is contained in:
@@ -137,7 +137,11 @@ namespace OpenRA.FileFormats
|
|||||||
if (reader.PeekChar() == 0) reader.ReadByte();
|
if (reader.PeekChar() == 0) reader.ReadByte();
|
||||||
}
|
}
|
||||||
if (++currentFrame == numFrames)
|
if (++currentFrame == numFrames)
|
||||||
|
{
|
||||||
currentFrame = 0;
|
currentFrame = 0;
|
||||||
|
cbpCount = 0;
|
||||||
|
newcbfFormat80.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FrameData(ref Bitmap frame)
|
public void FrameData(ref Bitmap frame)
|
||||||
|
|||||||
Reference in New Issue
Block a user