From 7de582c4e6151558dc8d3cf08743c3b34368db3e Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 11 Mar 2024 23:04:34 +0100 Subject: [PATCH] Fix complain parameter is not respected in `Blackboard::get_var` if parent scope is assigned --- blackboard/blackboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blackboard/blackboard.cpp b/blackboard/blackboard.cpp index e04e1bc..820b7b1 100644 --- a/blackboard/blackboard.cpp +++ b/blackboard/blackboard.cpp @@ -36,7 +36,7 @@ Variant Blackboard::get_var(const StringName &p_name, const Variant &p_default, if (data.has(p_name)) { return data.get(p_name).get_value(); } else if (parent.is_valid()) { - return parent->get_var(p_name, p_default); + return parent->get_var(p_name, p_default, p_complain); } else { if (p_complain) { ERR_PRINT(vformat("Blackboard: Variable \"%s\" not found.", p_name));