Skip to content

Commit

Permalink
Merge pull request #78112 from Faless/mp/4.x_fix_delta_crash
Browse files Browse the repository at this point in the history
[MP] Fix crash when sending multiple delta variants.
  • Loading branch information
akien-mga committed Jun 12, 2023
2 parents 9fca498 + 45456f8 commit 686d3ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/multiplayer/scene_replication_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 686d3ef

Please sign in to comment.