Fix import size check

Closes #188
This commit is contained in:
Kurt 2020-05-09 22:28:48 -07:00
parent dd92b9ea73
commit cca03ea27a

View File

@ -98,7 +98,7 @@ private void B_LoadHouse_Click(object sender, EventArgs e)
var file = ofd.FileName;
var fi = new FileInfo(file);
const int expectLength = VillagerHouse.SIZE;
const int expectLength = PlayerHouse.SIZE;
if (fi.Length != expectLength)
{
WinFormsUtil.Error(MessageStrings.MsgCanceling, string.Format(MessageStrings.MsgDataSizeMismatchImport, fi.Length, expectLength));