[MP] Fix crash when sending multiple delta variants.
This commit is contained in:
parent
37d1dfef9d
commit
45456f89a2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user