List of asset types works again

This commit is contained in:
2018-12-09 18:43:29 +01:00
parent 70661d6711
commit f62a385eab
4 changed files with 5 additions and 20 deletions

View File

@ -59,7 +59,7 @@ public class SelectAssetTypeDialog extends EscDialog {
}
ComboBoxModel getComboBoxModel() {
ArrayList vector = new ArrayList();
ArrayList vector = new ArrayList(asset_types.size()+1);
int i;
for (i = 0; i < asset_types.size(); i++) {
AbstractAsset ait;
@ -67,9 +67,6 @@ public class SelectAssetTypeDialog extends EscDialog {
System.out.printf("ACL: %s\n", asset_type.getName());
String tn = GodWorld.getTypeName(asset_type);
if (tn == null) {
continue;
}
vector.add(i, tn);
}