Skip to content

Commit

Permalink
Add else
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Dec 9, 2024
1 parent e7cee14 commit ba792c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1780,13 +1780,11 @@ public override void Write(CGameCtnChallenge n, GbxWriter w)
{
ident = ident with { Id = fullName.Substring(itemsPrefix.Length) };
}

if (fullName.StartsWith(blocksPrefix))
else if (fullName.StartsWith(blocksPrefix))
{
ident = ident with { Id = fullName.Substring(blocksPrefix.Length) };
}

if (fullName.StartsWith(clubItemsPrefix))
else if (fullName.StartsWith(clubItemsPrefix))
{
ident = ident with
{
Expand Down

0 comments on commit ba792c4

Please sign in to comment.