From 962d53336c4dda76a59ab5ad02fa8659b507b7ca Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 24 May 2005 14:18:19 +0000 Subject: [PATCH] Make sure skinmaps are loaded even if prototype's resources haven't been checked yet. Fixes bug 428. --- src/helma/framework/core/Prototype.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/Prototype.java b/src/helma/framework/core/Prototype.java index c5f6bd38..c5b6f633 100644 --- a/src/helma/framework/core/Prototype.java +++ b/src/helma/framework/core/Prototype.java @@ -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(); } }