summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-09-05 14:01:39 +0300
committerGitHub <noreply@github.com>2020-09-05 14:01:39 +0300
commit52f6ac81be14fe3f7dacb2e2b75d9bf9a668b628 (patch)
treee475caa6baa1e98abef636c004b3391c43b3668f /servers/rendering
parentdaefe12774962109dde3ff9c974b28ff2ecf2459 (diff)
parentb1351fe781b87d3b513fbef335522c6829e870c5 (diff)
Merge pull request #41785 from Chaosus/fix_crash
Fix crash regression in the shader function validation
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp
index 728e369df4..e9b1cb366d 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -2398,7 +2398,7 @@ bool ShaderLanguage::_validate_function_call(BlockNode *p_block, const Map<Strin
FunctionNode *pfunc = shader->functions[i].function;
if (arg_list == "") {
- for (int j = 0; j < args.size(); j++) {
+ for (int j = 0; j < pfunc->arguments.size(); j++) {
if (j > 0) {
arg_list += ", ";
}