some tweaking
[oweals/minetest.git] / src / guiMainMenu.h
index 8060f511d75a6ebf61f71a1e3cf306a0ab92f51d..010d0bf6d975e71dc27b2c29d1bd7e69a39226c9 100644 (file)
@@ -29,11 +29,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 struct MainMenuData
 {
+       MainMenuData():
+               creative_mode(false),
+               delete_map(false)
+       {}
        // These are in the native format of the gui elements
        std::wstring address;
        std::wstring port;
        std::wstring name;
        bool creative_mode;
+       // If map deletion is requested, this is set to true
+       bool delete_map;
 };
 
 class GUIMainMenu : public GUIModalMenu