Skip to content

Commit

Permalink
fix a typo in the example plugin code
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 23, 2024
1 parent 0af2d68 commit 362b45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/examples/persistent_per_save_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ DFhackCExport command_result plugin_load_site_data (color_ostream &out) {

if (!config.isValid()) {
DEBUG(config,out).print("no config found in this save; initializing\n");
config = World::AddPersistentData(CONFIG_KEY);
config = World::AddPersistentSiteData(CONFIG_KEY);
config.set_bool(CONFIG_IS_ENABLED, is_enabled);
config.set_int(CONFIG_SOMETHING_ELSE, 6000);
}
Expand Down

0 comments on commit 362b45c

Please sign in to comment.