Commit fc7fa818 authored by 李维's avatar 李维

优化一处可能会爆闪的bug

parent 90343dcb
......@@ -376,7 +376,7 @@ export default class UnitPageClass extends PageComponentBaseClass {
lastUpdate = 0;
update (dt) {
if(this.isDestroy && !this.allListItemNodes) {
if(this.isDestroy || !this.allListItemNodes) {
return
}
if(this.lastUpdate < this.allListItemNodes.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment