mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:24:16 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user