diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index b64ad8dcf2..00aefd0414 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -257,6 +257,7 @@ void IPSwitchCompiler::Parse(std::span bytes) { // we dont check for "//", IPS checks for '/' only... if ((!quote && p[0] == '/') || (!quote && p[0] == '#')) { + --p; //eat up the comment char break; } else if (p[0] == '\"' || p[0] == '\'') { quote = (p[0] == quote) ? '\0' : p[0];