~ruther/NosSmooth

711277cdef1888c33408fbf02ab177e707eac818 — František Boháček 3 years ago 16838df
feat: do not remove prepared level on pop level
M Core/NosSmooth.Packets/PacketStringBuilder.cs => Core/NosSmooth.Packets/PacketStringBuilder.cs +0 -1
@@ 104,7 104,6 @@ public class PacketStringBuilder
            return new InvalidOperationError("The level cannot be popped, the stack is already at the top level.");
        }

        _preparedLevelSeparator = null;
        _currentLevel = _currentLevel.Parent;

        return Result.FromSuccess();

M Core/NosSmooth.Packets/PacketStringEnumerator.cs => Core/NosSmooth.Packets/PacketStringEnumerator.cs +0 -1
@@ 180,7 180,6 @@ public struct PacketStringEnumerator
            return new InvalidOperationError("The level cannot be popped, the stack is already at the top level.");
        }

        _preparedLevel = null;
        _numberOfSeparators[_currentLevel.Separator]--;
        _currentLevel = _currentLevel.Parent;
        return Result.FromSuccess();

Do not follow this link