 
         ListView@ terrainBrushes = window.GetChild("BrushesContainer", true);
 
-        for(uint i = 0; i < terrainBrushes.numItems; ++i)
+        for (uint i = 0; i < terrainBrushes.numItems; ++i)
         {
-            if(terrainBrushes.items[i] !is selectedBrush)
+            if (terrainBrushes.items[i] !is selectedBrush)
             {
                 CheckBox@ checkbox = cast<CheckBox>(terrainBrushes.items[i]);
                 checkbox.checked = false;

    // Save all the terrains we have edited
    void Save()
    {
        for(uint i = 0; i < terrainsEdited.length; ++i)
        {
            // Make sure its not null (it may have been deleted since last save)
            if(terrainsEdited[i] !is null)
            {
                String fileLocation = fileSystem.programDir + "Data/" + terrainsEdited[i].GetAttribute("Height Map").GetResourceRef().name;


                            newColor.b += (targetColor.b - newColor.b) * brushColor.a;

                            // Set it to target if its close enough
                            if (Difference(targetColor.r, newColor.r) < 0.01f) newColor.r = targetColor.r;
                            if (Difference(targetColor.g, newColor.g) < 0.01f) newColor.g = targetColor.g;
                            if (Difference(targetColor.b, newColor.b) < 0.01f) newColor.b = targetColor.b;

                            terrainImage.SetPixel(pos.x, pos.y, newColor);
                        }
