diff options
| author | Juan Linietsky | 2017-04-06 23:36:37 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-04-06 23:49:27 -0300 |
| commit | 74808ac4d9176180dc7ecace99723edab8a73e0e (patch) | |
| tree | 065e903073bbdebe864bb6322ca0abc2fca108bb /core/variant_parser.cpp | |
| parent | 25d09b92be0f5d86cdee6eada80823cdcc2d42bc (diff) | |
| download | godot-74808ac4d9176180dc7ecace99723edab8a73e0e.tar.gz godot-74808ac4d9176180dc7ecace99723edab8a73e0e.tar.zst godot-74808ac4d9176180dc7ecace99723edab8a73e0e.zip | |
Diffstat (limited to 'core/variant_parser.cpp')
| -rw-r--r-- | core/variant_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |
