From 391de9f62cd5c1491e721af43e2ce3d32da38ac2 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sun, 18 May 2025 13:34:08 -0500 Subject: [PATCH] use the stringtable to hold generated docstrings among other things it removes doubles --- Engine/source/console/consoleFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index 31a857943..d2f5df6fc 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/Engine/source/console/consoleFunctions.cpp @@ -2859,7 +2859,7 @@ const char* getDocsLink(const char* filename, U32 lineNumber) String baseUrL = String(Con::getVariable("Pref::DocURL","https://github.com/TorqueGameEngines/Torque3D/blob/development/Engine/source")); String URL = String("docs"); - return (new String(URL))->c_str(); + return StringTable->insert(URL.c_str()); } bool getDocsURL(void* obj, const char* array, const char* data)