From 74808ac4d9176180dc7ecace99723edab8a73e0e Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 6 Apr 2017 23:36:37 -0300 Subject: New particle system, mostly working, some small features missing. --- 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 67e4673ad..733854a15 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -755,7 +755,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream, Image::Format format = Image::FORMAT_MAX; for (int i = 0; i < Image::FORMAT_MAX; i++) { - if (Image::get_format_name(format) == sformat) { + if (Image::get_format_name(Image::Format(i)) == sformat) { format = Image::Format(i); } } -- cgit v1.2.3-70-g09d2