Skip to content

Commit

Permalink
return "0" if xml value was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
koliva8245 committed Sep 8, 2023
1 parent ad5d9eb commit e7502d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HeroesData.Parser/GameStringParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ private string ReadData(List<string> parts, List<string> scalingParts, out doubl
else if (int.TryParse(part, out int partAsInt) && parts.Count > partAsInt && parts[partAsInt] == parts.Last())
return partValue;
}

return "0";
}

return value;
Expand Down

0 comments on commit e7502d4

Please # to comment.