                 continue;
 
             return value < (i + (i / 2)) ? i : i * 2;
-    	}
+        }
 
         return 2048;
     }

    {
        ListView@ terrainBrushes = window.GetChild("BrushesContainer", true);

        String brushesFileLocation = fileSystem.programDir + "Data/Textures/Editor/TerrainBrushes";
        Array<String> files = fileSystem.ScanDir(brushesFileLocation, "*.*", SCAN_FILES, false);

        for (uint i = 0; i < files.length; ++i)

            // Make sure its not null (it may have been deleted since last save)
            if (terrainsEdited[i] !is null)
            {
                String fileLocation = sceneResourcePath + terrainsEdited[i].GetAttribute("Height Map").GetResourceRef().name;

                Array<String> chunks = fileLocation.Split('/');
                Array<String> parts = chunks[chunks.length - 1].Split('.');
