diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-25 22:36:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 22:36:16 +0100 |
commit | b25c7fef04499a7bee2333184bd7e5879d304eee (patch) | |
tree | bb985ef9ce25da044fa9a13755e45345fbfca26e | |
parent | d9fd16c8e4de693400f7cfbaa20f198535eb13ca (diff) | |
parent | 28ac4d8b7d4139dee4f2baf8e091fdb754f03713 (diff) |
Merge pull request #57229 from cdemirer/match-dictionary-non-const-key-crash-fix
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 0d295c3a51..d11174227a 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1586,7 +1586,7 @@ void GDScriptAnalyzer::resolve_match_pattern(GDScriptParser::PatternNode *p_matc if (p_match_pattern->dictionary[i].key) { reduce_expression(p_match_pattern->dictionary[i].key); if (!p_match_pattern->dictionary[i].key->is_constant) { - push_error(R"(Expression in dictionary pattern key must be a constant.)", p_match_pattern->expression); + push_error(R"(Expression in dictionary pattern key must be a constant.)", p_match_pattern->dictionary[i].key); } } |