diff --git a/plugins/autobutcher.cpp b/plugins/autobutcher.cpp index 7fb785cc1..3e76796cb 100644 --- a/plugins/autobutcher.cpp +++ b/plugins/autobutcher.cpp @@ -122,6 +122,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/autochop.cpp b/plugins/autochop.cpp index 81c6196a1..5888574dd 100644 --- a/plugins/autochop.cpp +++ b/plugins/autochop.cpp @@ -158,6 +158,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/automelt.cpp b/plugins/automelt.cpp index 5b68bb10b..a5c288f6d 100644 --- a/plugins/automelt.cpp +++ b/plugins/automelt.cpp @@ -167,6 +167,7 @@ DFhackCExport command_result plugin_shutdown(color_ostream &out) DFhackCExport command_result plugin_load_data(color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) diff --git a/plugins/autonestbox.cpp b/plugins/autonestbox.cpp index 8b1ee5244..be7bdb2aa 100644 --- a/plugins/autonestbox.cpp +++ b/plugins/autonestbox.cpp @@ -96,6 +96,7 @@ DFhackCExport command_result plugin_enable(color_ostream &out, bool enable) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/autoslab.cpp b/plugins/autoslab.cpp index 51c92b0f7..9b0848470 100644 --- a/plugins/autoslab.cpp +++ b/plugins/autoslab.cpp @@ -107,6 +107,7 @@ DFhackCExport command_result plugin_shutdown(color_ostream &out) DFhackCExport command_result plugin_load_data(color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) diff --git a/plugins/buildingplan.cpp b/plugins/buildingplan.cpp index 1407e5c46..039c83b0f 100644 --- a/plugins/buildingplan.cpp +++ b/plugins/buildingplan.cpp @@ -162,6 +162,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/examples/persistent_per_save_example.cpp b/plugins/examples/persistent_per_save_example.cpp index 603df1a3c..a8421949b 100644 --- a/plugins/examples/persistent_per_save_example.cpp +++ b/plugins/examples/persistent_per_save_example.cpp @@ -103,6 +103,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/nestboxes.cpp b/plugins/nestboxes.cpp index 98becf170..98e557075 100644 --- a/plugins/nestboxes.cpp +++ b/plugins/nestboxes.cpp @@ -85,6 +85,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; config = World::GetPersistentData(CONFIG_KEY); if (!config.isValid()) { diff --git a/plugins/seedwatch.cpp b/plugins/seedwatch.cpp index e88921653..aee167258 100644 --- a/plugins/seedwatch.cpp +++ b/plugins/seedwatch.cpp @@ -165,6 +165,8 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) { } DFhackCExport command_result plugin_load_data (color_ostream &out) { + cycle_timestamp = 0; + world_plant_ids.clear(); for (size_t i = 0; i < world->raws.plants.all.size(); ++i) { auto & plant = world->raws.plants.all[i];