add missing check to foundation.js
This commit is contained in:
parent
314d5da201
commit
2813270802
@ -102,7 +102,7 @@ Foundation.prototype.GetNumBuilders = function()
|
||||
};
|
||||
|
||||
Foundation.prototype.IsFinished = function () {
|
||||
if (this.GetBuildProgress() == 1.0)
|
||||
if (this.GetBuildProgress() == 1.0 && this.entsToDestroy)
|
||||
for (let ent of this.entsToDestroy)
|
||||
Engine.DestroyEntity(ent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user