Make sure skinmaps are loaded even if prototype's resources haven't been checked yet.

Fixes bug 428.
This commit is contained in:
hns 2005-05-24 14:18:19 +00:00
parent fe455cb556
commit 962d53336c

View file

@ -418,7 +418,7 @@ public final class Prototype {
// a map that dynamically expands to all skins in this prototype
final class SkinMap extends SystemMap {
long lastSkinmapLoad = 0;
long lastSkinmapLoad = -1;
Object[] skinpath;
SkinMap() {
@ -523,6 +523,10 @@ public final class Prototype {
private void checkForUpdates() {
if (lastCodeUpdate > lastSkinmapLoad) {
if (lastCodeUpdate == 0) {
// if prototype resources haven't been checked yet, check them now
Prototype.this.checkForUpdates();
}
load();
}
}