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:
parent
bc8893123b
commit
cfa6ddc3e0
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue