From 654eda1c65e4b6df6a852d27ed0bb159aee3e41b Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sat, 10 Feb 2024 15:05:50 +0100 Subject: [PATCH] Better error handling when resolving _generate_name --- bt/tasks/bt_task.cpp | 19 +++++++++++++++---- editor/limbo_ai_editor_plugin.cpp | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/bt/tasks/bt_task.cpp b/bt/tasks/bt_task.cpp index 16d5c5d..4031d22 100644 --- a/bt/tasks/bt_task.cpp +++ b/bt/tasks/bt_task.cpp @@ -128,9 +128,17 @@ String BTTask::get_task_name() { } return _generate_name(); #elif LIMBOAI_GDEXTENSION - String s; - VCALL_OR_NATIVE_V(_generate_name, String, s); - return s; + Ref