Prechádzať zdrojové kódy

Merge pull request #1766 from MineGame159/fix_GetIndexAtLine

Fixed BfParser::GetIndexAtLine
Brian Fiete 2 rokov pred
rodič
commit
5894889a8b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      IDEHelper/Compiler/BfParser.cpp

+ 1 - 1
IDEHelper/Compiler/BfParser.cpp

@@ -465,7 +465,7 @@ int BfParser::GetIndexAtLine(int line)
 		{
 		{
 			curLine++;
 			curLine++;
 			if (line == curLine)
 			if (line == curLine)
-				return i;
+				return i + 1;
 		}
 		}
 	}
 	}