Merge pull request #78112 from Faless/mp/4.x_fix_delta_crash
[MP] Fix crash when sending multiple delta variants.
This commit is contained in:
commit
686d3efa39
1 changed files with 1 additions and 0 deletions
|
@ -727,6 +727,7 @@ void SceneReplicationInterface::_send_delta(int p_peer, const HashSet<ObjectID>
|
|||
int i = 0;
|
||||
for (const Variant &v : delta) {
|
||||
vptr[i] = &v;
|
||||
i++;
|
||||
}
|
||||
int size;
|
||||
Error err = MultiplayerAPI::encode_and_compress_variants(vptr, varp.size(), nullptr, size);
|
||||
|
|
Loading…
Reference in a new issue