Explorar o código

adress https://github.com/TorqueGameEngines/Torque3D/pull/1015#discussion_r1179352178
docs for CodeBlock::calcBreakList() sizing

AzaezelX %!s(int64=2) %!d(string=hai) anos
pai
achega
339393aa85

+ 1 - 1
Engine/source/console/codeBlock.cpp

@@ -309,7 +309,7 @@ void CodeBlock::calcBreakList()
    if (seqCount)
       size++;
 
-   breakList = new U32[size+3];
+   breakList = new U32[size+3]; //lineBreakPairs plus pad
    breakListSize = size;
    line = -1;
    seqCount = 0;

+ 1 - 1
Engine/source/console/consoleObject.h

@@ -863,7 +863,7 @@ public:
 public:
 
    /// Get the classname from a class tag.
-   static const char* lookupClassName(const U32 in_classTag) {};
+   static const char* lookupClassName(const U32 in_classTag) { return ""; };
 
    /// @name Fields
    /// @{

+ 1 - 1
Engine/source/console/engineExports.h

@@ -166,7 +166,7 @@ class EngineExportScope : public EngineExport
    private:
    
       /// Constructor for the global scope.
-      EngineExportScope():mExports(NULL){}
+      EngineExportScope():mExports(nullptr){}
 };