Fix ClassCastException in SkinMap.load()
This commit is contained in:
parent
628cadcf49
commit
2127a6738f
1 changed files with 2 additions and 2 deletions
|
@ -502,9 +502,9 @@ public final class Prototype {
|
||||||
|
|
||||||
// load Skins
|
// load Skins
|
||||||
for (Iterator i = skins.iterator(); i.hasNext();) {
|
for (Iterator i = skins.iterator(); i.hasNext();) {
|
||||||
Map.Entry e = (Map.Entry) i.next();
|
Resource res = (Resource) i.next();
|
||||||
|
|
||||||
super.put(e.getKey(), e.getValue());
|
super.put(res.getShortName(), res);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if skinpath is not null, overload/add skins from there
|
// if skinpath is not null, overload/add skins from there
|
||||||
|
|
Loading…
Add table
Reference in a new issue