Fix || && comparison

Resolves #12

Thanks @Will-The-Lion for reporting!
This commit is contained in:
Kaphotics 2016-05-06 13:33:14 -07:00
parent 75d046f1fb
commit df7081efc3

View File

@ -1294,7 +1294,7 @@ private void B_ImportAcres_Click(object sender, EventArgs e)
return;
byte[] data = File.ReadAllBytes(ofd.FileName);
if (data.Length != 2*6*7 || data.Length != 2*4*4)
if (data.Length != 2*6*7 && data.Length != 2*4*4)
{
Util.Error("Input file length is not a valid acre map.",
String.Format("Data Size: {1}{0}Acre Count: {2}", Environment.NewLine, data.Length, data.Length/2));