From 4cbc70eeca3e2f3702a6d63cd33e25bc0a443260 Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Sat, 4 Jun 2022 10:00:06 -0400 Subject: [PATCH] Make it easy to write options file. --- enemize/src/option_flags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enemize/src/option_flags.rs b/enemize/src/option_flags.rs index 259f160..a8d2fd9 100644 --- a/enemize/src/option_flags.rs +++ b/enemize/src/option_flags.rs @@ -366,7 +366,7 @@ impl TryFrom for BeeLevel { } #[derive(Debug, Deserialize, Serialize)] -#[serde(rename_all = "PascalCase")] +#[serde(default, rename_all = "PascalCase")] pub struct OptionFlags { pub randomize_enemies: bool, pub randomize_enemies_type: RandomizeEnemiesType,