Browse Source

Fixes problem parsing config files using ConfigFile

Juan Linietsky 10 năm trước cách đây
mục cha
commit
40c0e1993a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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]=='{')