From b587614653bc9fcd5b11934fc4aca7fe58d5d3a0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 1 Feb 2016 19:00:19 -0300 Subject: Make sure variant parser recognizes "nil" for compatibility with old engine.cfg style cofig. Closes #3531 --- core/variant_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/variant_parser.cpp') diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 4976891e2..b95e52f7b 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -542,7 +542,7 @@ Error VariantParser::parse_value(Token& token,Variant &value,Stream *p_stream,in value=true; else if (id=="false") value=false; - else if (id=="null") + else if (id=="null" || id=="nil") value=Variant(); else if (id=="Vector2"){ -- cgit v1.2.3-70-g09d2