diff --git a/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp b/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp index 7e132e2d..c4c1a672 100644 --- a/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp +++ b/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp @@ -111,7 +111,8 @@ namespace UnLua Ret += FString::Printf(TEXT("local %s = {}\r\n"), *EscapeSymbolName(TypeName)); // exported functions - const auto Exported = GetExportedReflectedClasses().Find(TypeName); + const auto& ExportedReflectedClasses = GetExportedReflectedClasses(); + const auto Exported = ExportedReflectedClasses.Find(TypeName); if (Exported) { TArray ExportedFunctions; @@ -174,7 +175,8 @@ namespace UnLua } // exported functions - const auto Exported = GetExportedReflectedClasses().Find(TypeName); + const auto& ExportedReflectedClasses = GetExportedReflectedClasses(); + const auto Exported = ExportedReflectedClasses.Find(TypeName); if (Exported) { TArray ExportedFunctions;