浏览代码

Fix for bug 1088

Muresan Vlad aka Mury 10 年之前
父节点
当前提交
9ee218ac9b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/dictionary.cpp

+ 2 - 0
core/dictionary.cpp

@@ -186,10 +186,12 @@ Error Dictionary::parse_json(const String& p_json) {
 
 	String errstr;
 	int errline=0;
+	if (p_json != ""){
 	Error err = JSON::parse(p_json,*this,errstr,errline);
 	if (err!=OK) {
 		ERR_EXPLAIN("Error parsing JSON: "+errstr+" at line: "+itos(errline));
 		ERR_FAIL_COND_V(err!=OK,err);
+		}
 	}
 
 	return OK;