Skip to content

Commit 379387e

Browse files
committed
fixed undomanager
at long last
1 parent e67b295 commit 379387e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Game/Track.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public void AddLine(GameLine line)
137137
{
138138
if (line.Type == LineType.Scenery)
139139
{
140-
line.ID = Lines.Count > 0 ? LinesMin - 1 : -1;
140+
if (line.ID == GameLine.UninitializedID)
141+
{
142+
line.ID = Lines.Count > 0 ? LinesMin - 1 : -1;
143+
}
141144
if (line.ID < LinesMin)
142145
{
143146
LinesMin = line.ID;

0 commit comments

Comments
 (0)