mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-01 20:56:36 -05:00
sanity check for OwSL, they need at least 1 element
This commit is contained in:
@@ -133,6 +133,8 @@ namespace HavenSoft.HexManiac.Core.Models.Runs {
|
||||
if (ElementCount == MaxOverworldSprites) break; // overworld sprite lists can only have so many elements
|
||||
}
|
||||
|
||||
ElementCount = Math.Max(ElementCount, 1);
|
||||
Length = Math.Max(ElementLength, Length);
|
||||
SpriteFormat = new SpriteFormat(4, tileWidth, tileHeight, hint);
|
||||
ElementNames = ElementCount.Range().Select(i => string.Empty).ToList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user