[MP] Fix crash when sending multiple delta variants.

This commit is contained in:
Fabio Alessandrelli 2023-06-11 13:43:49 +02:00
parent 37d1dfef9d
commit 45456f89a2

View File

@ -727,6 +727,7 @@ void SceneReplicationInterface::_send_delta(int p_peer, const HashSet<ObjectID>
int i = 0; int i = 0;
for (const Variant &v : delta) { for (const Variant &v : delta) {
vptr[i] = &v; vptr[i] = &v;
i++;
} }
int size; int size;
Error err = MultiplayerAPI::encode_and_compress_variants(vptr, varp.size(), nullptr, size); Error err = MultiplayerAPI::encode_and_compress_variants(vptr, varp.size(), nullptr, size);