Added assertion to validate item list includes expected number of entries (even if some errored)

This commit is contained in:
Collin Smith 2020-08-17 20:38:24 -07:00
parent 447fc70ad2
commit d4a4c87b38

View File

@ -414,6 +414,7 @@ public class D2SReader96 {
Log.remove("item");
}
}
assert itemList.size == size : "itemList.size(" + itemList.size + ") != size(" + size + ")";
if (errors > 0) {
log.warn("{} items could not be loaded due to formatting errors.", errors);
}