mirror of https://github.com/rusefi/RomRaider.git
Fixed ordering problems with inherited tables
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@316 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
42c2aee137
commit
9363146600
|
@ -22,13 +22,16 @@ public class Rom implements Serializable {
|
|||
}
|
||||
|
||||
public void addTable(Table table) {
|
||||
boolean found = false;
|
||||
for (int i = 0; i < tables.size(); i++) {
|
||||
if (tables.get(i).getName().equalsIgnoreCase(table.getName())) {
|
||||
tables.remove(i);
|
||||
tables.add(i, table);
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
tables.add(table);
|
||||
if (!found) tables.add(table);
|
||||
}
|
||||
|
||||
public Table getTable(String tableName) throws TableNotFoundException {
|
||||
|
|
Loading…
Reference in New Issue