diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-08-19 18:44:09 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-08-19 18:44:09 -0300 |
commit | 2fa693273c4eca763a0d65385e1a44bd46dd715c (patch) | |
tree | c5a13fc10b02d16891269d87c4e0baf87cee977e /modules/enet | |
parent | 1add52b55e038a4fa789c64f3919f7fcab808e91 (diff) |
Many fixes to networking, demo should work now
Diffstat (limited to 'modules/enet')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index e9a3a46e75..1e52083b6b 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -285,8 +285,8 @@ void NetworkedMultiplayerENet::poll(){ incoming_packets.push_back(packet); } else { //to someone else, specifically - ERR_CONTINUE(!peer_map.has(source)); - enet_peer_send(peer_map[source],0,packet.packet); + ERR_CONTINUE(!peer_map.has(target)); + enet_peer_send(peer_map[target],0,packet.packet); } } else { |