소스 검색

Fixes problem parsing config files using ConfigFile

Juan Linietsky 10 년 전
부모
커밋
40c0e1993a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/io/config_file.cpp

+ 2 - 0
core/io/config_file.cpp

@@ -357,6 +357,7 @@ if (res!=-1 && res < min_pos) {\
 		} break;
 		case MIN_OPEN: {
 			int level=1;
+			end++;
 			while(end<close_pos) {
 
 				if (str[end]=='[')
@@ -373,6 +374,7 @@ if (res!=-1 && res < min_pos) {\
 		} break;
 		case MIN_CURLY_OPEN: {
 			int level=1;
+			end++;
 			while(end<close_pos) {
 
 				if (str[end]=='{')