Hi! A small issue I spotted - OutFunctionCalls parameter in FNiagaraStackGraphUtilities::FindScriptModulesInStack() should be a reference, i.e. TArray<UNiagaraNodeFunctionCall*>& OutFunctionCalls (currently missing &). The method is only used within the Niagara module and the output returned in that param seems unused at the moment, so most likely that’s why this was never caught. Thanks!
Hi Maciej,
Thank you for reporting this issue. I confirmed it and filed an internal bug report for the engine devs. Note that this function was created in 2017 and that this output parameter doesn’t seem to have ever been used by the only callers UNiagaraScriptSource::AddModuleIfMissing() and UNiagaraStackScriptItemGroup::RefreshIssues(), so it is possible that it takes a while until the devs prioritize it. It really is a very quick fix, though. Here’s the public bug tracker link: UE-312484.
Best regards,
Vitor