1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

Fix TriangleDrawNode crash when aimcount is zero

This commit is contained in:
Dean Herbert 2019-07-20 22:50:35 +09:00
parent 3b27398f22
commit 4c592a5e65

View File

@ -214,7 +214,7 @@ namespace osu.Game.Graphics.Backgrounds
{
base.Draw(vertexAction);
if (vertexBatch == null || vertexBatch.Size != Source.AimCount)
if (vertexBatch == null || vertexBatch.Size != Source.AimCount && Source.AimCount > 0)
{
vertexBatch?.Dispose();
vertexBatch = new TriangleBatch<TexturedVertex2D>(Source.AimCount, 1);