mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Sort templateModifications after inserting
The insertion order might not be consistent when clients join.
This commit is contained in:
parent
b572fed672
commit
53a67e560f
1 changed files with 2 additions and 0 deletions
|
|
@ -308,6 +308,8 @@ SharedScript.prototype.ApplyTemplatesDelta = function(state)
|
|||
modif.set(change.variable, change.value);
|
||||
}
|
||||
}
|
||||
this._templatesModifications =
|
||||
Object.fromEntries(Object.entries(this._templatesModifications).sort());
|
||||
Engine.ProfileStop();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue