mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Clear changedEntities on initialization
When initialized all entities get queried. But the set of entities to query wasn't cleard. This lead to an OOS.
This commit is contained in:
parent
e07b4df6ba
commit
f81cf7e602
1 changed files with 1 additions and 0 deletions
|
|
@ -148,6 +148,7 @@ AIInterface.prototype.GetFullRepresentation = function(flushEvents)
|
|||
// all entities are changed in the initial state.
|
||||
for (const id of Engine.GetEntitiesWithInterface(IID_AIProxy))
|
||||
state.entities[id] = Engine.QueryInterface(id, IID_AIProxy).GetFullRepresentation();
|
||||
this.changedEntities = {};
|
||||
Engine.ProfileStop();
|
||||
|
||||
state.changedTemplateInfo = this.changedTemplateInfo;
|
||||
|
|
|
|||
Loading…
Reference in a new issue