Allow saving of maps with a total encounter rate of 0%.

This commit is contained in:
Secretive Cactus 2017-07-08 12:41:22 -04:00
parent cb2de16104
commit bdf1cd89a7

View File

@ -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;
}