From 45456f89a27ebb341f6c826c1ee3368997b325c1 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 11 Jun 2023 13:43:49 +0200 Subject: [PATCH] [MP] Fix crash when sending multiple delta variants. --- modules/multiplayer/scene_replication_interface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/multiplayer/scene_replication_interface.cpp b/modules/multiplayer/scene_replication_interface.cpp index b058bf7a521..7f12fea4bf3 100644 --- a/modules/multiplayer/scene_replication_interface.cpp +++ b/modules/multiplayer/scene_replication_interface.cpp @@ -727,6 +727,7 @@ void SceneReplicationInterface::_send_delta(int p_peer, const HashSet 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);