diff --git a/KSPCommunityFixes/Performance/ConfigNodePerf.cs b/KSPCommunityFixes/Performance/ConfigNodePerf.cs index f83386e..e3bea85 100644 --- a/KSPCommunityFixes/Performance/ConfigNodePerf.cs +++ b/KSPCommunityFixes/Performance/ConfigNodePerf.cs @@ -790,7 +790,7 @@ public static unsafe ConfigNode ParseConfigNode(char* pBase, int numChars) // first eat the rest of the line, if it's a comment if (mode == ParseMode.EatComment) { - if (c == '\n') + if (c == '\n' || c == '\r') { mode = ParseMode.SkipToKey; start = pos + 1; @@ -803,7 +803,7 @@ public static unsafe ConfigNode ParseConfigNode(char* pBase, int numChars) if (char.IsWhiteSpace(c)) { // handle EOL - if (c == '\n') + if (c == '\n' || c == '\r') { //ProcessString(pBase, start, lastNonWS); if (mode == ParseMode.ReadKey)