summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/scene_cache_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/multiplayer/scene_cache_interface.h')
-rw-r--r--modules/multiplayer/scene_cache_interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/multiplayer/scene_cache_interface.h b/modules/multiplayer/scene_cache_interface.h
index ab4a20c078..73d6bde6ef 100644
--- a/modules/multiplayer/scene_cache_interface.h
+++ b/modules/multiplayer/scene_cache_interface.h
@@ -44,7 +44,7 @@ private:
//path sent caches
struct NodeCache {
- int cache_id;
+ int cache_id = 0;
HashMap<int, int> recv_ids; // peer id, remote cache id
HashMap<int, bool> confirmed_peers; // peer id, confirmed
};
@@ -55,6 +55,7 @@ private:
};
HashMap<ObjectID, NodeCache> nodes_cache;
+ HashMap<int, ObjectID> assigned_ids;
HashMap<int, PeerInfo> peers_info;
int last_send_cache_id = 1;