From bdf1cd89a770035175fc7a8a17bfadfbdfa3f790 Mon Sep 17 00:00:00 2001 From: Secretive Cactus Date: Sat, 8 Jul 2017 12:41:22 -0400 Subject: [PATCH] Allow saving of maps with a total encounter rate of 0%. --- pk3DS/Subforms/Gen7/SMWE.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pk3DS/Subforms/Gen7/SMWE.cs b/pk3DS/Subforms/Gen7/SMWE.cs index 92ef969..8e89a7e 100644 --- a/pk3DS/Subforms/Gen7/SMWE.cs +++ b/pk3DS/Subforms/Gen7/SMWE.cs @@ -328,9 +328,9 @@ private void B_Save_Click(object sender, EventArgs e) int tot = 0; foreach (var nup in rate_spec) { tot += (int) nup.Value; } - if (tot != 100) + if (tot != 100 && tot != 0) { - WinFormsUtil.Error("Encounter rates must add up to 100%."); + WinFormsUtil.Error("Encounter rates must add up to either 0% or 100%."); return; }