Explorar o código

Revert "Merge pull request #56 from mjunix/patch-8"

This reverts commit 206b0599441c2e8a2e07159c47071dbb4704529c, reversing
changes made to 293aa0be8e5a383bb3ad905bafdd9247ec100576.
Peter Robinson %!s(int64=2) %!d(string=hai) anos
pai
achega
97937b1fd6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      engine/source/console/metaScripting_ScriptBinding.cc

+ 2 - 2
engine/source/console/metaScripting_ScriptBinding.cc

@@ -571,7 +571,7 @@ ConsoleFunctionWithDocs(exec, ConsoleBool, 2, 4, ( fileName, [nocalls]?, [journa
 
 
         if ( scriptExecutionEcho )
         if ( scriptExecutionEcho )
             Con::printf("Loaded compiled script %s. Took %.0f ms", scriptFileName, etf);
             Con::printf("Loaded compiled script %s. Took %.0f ms", scriptFileName, etf);
-	delete code;
+
       ret = true;
       ret = true;
    }
    }
    else if(rScr) //Luma : Load normal cs file here.
    else if(rScr) //Luma : Load normal cs file here.
@@ -595,7 +595,7 @@ ConsoleFunctionWithDocs(exec, ConsoleBool, 2, 4, ( fileName, [nocalls]?, [journa
          
          
         if ( scriptExecutionEcho )
         if ( scriptExecutionEcho )
             Con::printf("Executed %s. Took %.0f ms", scriptFileName, etf);
             Con::printf("Executed %s. Took %.0f ms", scriptFileName, etf);
-	delete newCodeBlock;
+
          ret = true;
          ret = true;
    }
    }
    else
    else