Fix release build is not able to use LimboUtility

This commit is contained in:
Serhii Snitsaruk 2023-04-05 20:05:42 +02:00
parent 24a460be59
commit 5baddc2f3e
1 changed files with 1 additions and 1 deletions

View File

@ -167,12 +167,12 @@ void initialize_limboai_module(ModuleInitializationLevel p_level) {
_limbo_utility = memnew(LimboUtility); _limbo_utility = memnew(LimboUtility);
GDREGISTER_CLASS(LimboUtility); GDREGISTER_CLASS(LimboUtility);
Engine::get_singleton()->add_singleton(Engine::Singleton("LimboUtility", LimboUtility::get_singleton()));
LimboStringNames::create(); LimboStringNames::create();
} }
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) { if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
Engine::get_singleton()->add_singleton(Engine::Singleton("LimboUtility", LimboUtility::get_singleton()));
EditorPlugins::add_by_type<LimboAIEditorPlugin>(); EditorPlugins::add_by_type<LimboAIEditorPlugin>();
} }
#endif #endif