From 3aa35cf1519f41f563eb8d9fd13bc42dfb9e914a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 25 May 2025 11:52:39 -0500 Subject: [PATCH] default values for editor_state_t (might fix #744) --- src/scenario/scenario.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scenario/scenario.hpp b/src/scenario/scenario.hpp index 4bcf2e21..33ba77fc 100644 --- a/src/scenario/scenario.hpp +++ b/src/scenario/scenario.hpp @@ -56,14 +56,14 @@ struct terrain_view_t { // access to scenedit-specific global variables (which won't work unless we want to compile the common // sources 3 times), or globals redeclared for no reason in boe.main.cpp and pc.main.cpp struct editor_state_t { - bool drawing; - bool editing_town; + bool drawing = false; + bool editing_town = true; // I don't think this starting value of the default editor state matters. - short last_town_edited; + short last_town_edited = 0; // Remember last view and zoom for each town std::map town_view_state; - location last_out_edited; + location last_out_edited = {0, 0}; // Remember last view and zoom for each outdoor section-- // but only for when the designer makes a discontinuous section change. // When simply shifting over by 1 section we won't want to