summaryrefslogtreecommitdiffstats
path: root/commands/command_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command_edit.cpp')
-rw-r--r--commands/command_edit.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp
index 31ca4ea23..89e10b000 100644
--- a/commands/command_edit.cpp
+++ b/commands/command_edit.cpp
@@ -910,10 +910,16 @@ void PasteDives::redo()
undo();
}
-// ***** Paste *****
+// ***** ReplanDive *****
ReplanDive::ReplanDive(dive *source, bool edit_profile) : d(current_dive),
+ when(0),
+ maxdepth({0}),
+ meandepth({0}),
dc({ 0 }),
- notes(nullptr)
+ notes(nullptr),
+ surface_pressure({0}),
+ duration({0}),
+ salinity(0)
{
memset(&cylinders, 0, sizeof(cylinders));
if (!d)