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:
Rémi Verschelde 2023-06-12 11:56:21 +02:00
commit 686d3efa39
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);