Mark local info for prototype as initialized by setting info.lastUpdate to 1, even if the prototype's lastUpdate is 0

This commit is contained in:
hns 2002-10-07 11:57:48 +00:00
parent bc8893123b
commit cfa6ddc3e0

View file

@ -637,6 +637,11 @@ public final class FesiEvaluator implements ScriptingEngine {
info.lastUpdate = p.getLastUpdate ();
evaluatePrototype(p);
}
// set info.lastUpdate to 1 if it is 0 so we know we
// have initialized this prototype already, even if
// it is empty (i.e. doesn't contain any scripts/skins/actoins
if (info.lastUpdate == 0)
info.lastUpdate = 1;
}
}
return info == null? null : info.objectPrototype;