diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp index 7fff74e8e1a2..e3c26c30e21b 100644 --- a/scene/main/shader_globals_override.cpp +++ b/scene/main/shader_globals_override.cpp @@ -41,7 +41,7 @@ StringName *ShaderGlobalsOverride::_remap(const StringName &p_name) const { if (p.begins_with("params/")) { String q = p.replace_first("params/", ""); param_remaps[p] = q; - r = param_remaps.getptr(q); + r = param_remaps.getptr(p); } }