summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-12 09:12:18 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-12 09:12:18 -0300
commit40c0e1993aa28f580b9bf597abc8902b5d5c1e93 (patch)
treee8b9bed4dd6067beb23f8c3add3d8a21d1d4d948
parent3936ed882c6f39c74a3b124a95d5adc5e61ab3c5 (diff)
Fixes problem parsing config files using ConfigFile
-rw-r--r--core/io/config_file.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp
index 95ae31f3dd..75388f514a 100644
--- a/core/io/config_file.cpp
+++ b/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]=='{')