Johan Mattsson před 2 roky
rodič
revize
11a9edd263
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      Engine/source/terrain/terrImport.cpp

+ 1 - 0
Engine/source/terrain/terrImport.cpp

@@ -60,6 +60,7 @@ DefineEngineStaticMethod( TerrainBlock, createNew, S32, (String terrainName, U32
    if( !terrain->setFile( terrFileName ) )
    {
       Con::errorf( "TerrainBlock::createNew - error creating '%s'", terrFileName.c_str() );
+      delete terrain;
       return 0;
    }