mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:24:16 +00:00
Sort templateModifications after inserting
The insertion order might not be consistent when clients join.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user