1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix crash regression in the shader function validation

introduced in #41780
This commit is contained in:
Yuri Roubinsky
2020-09-05 13:49:50 +03:00
parent daefe12774
commit b1351fe781

View File

@@ -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 += ", ";
}