diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-06-01 16:42:22 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-06-27 18:29:35 +0300 |
commit | 0c4c36d823bb6792917dfac86491f61cec3f9b27 (patch) | |
tree | db6b87ccc416f6e9a23c69c0b625e7b4521d79f1 /modules/enet/networked_multiplayer_enet.cpp | |
parent | 2df8b5606b9de9d11873c27f0a297127bbbfc255 (diff) |
Add default values to the editor help, docs, and generated RST
Also, make spacing of "=" in the editor help a bit more consistent.
Closes #16086
Diffstat (limited to 'modules/enet/networked_multiplayer_enet.cpp')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index dcb4b7fd75..a5a356ced2 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -882,7 +882,9 @@ NetworkedMultiplayerENet::NetworkedMultiplayerENet() { NetworkedMultiplayerENet::~NetworkedMultiplayerENet() { - close_connection(); + if (active) { + close_connection(); + } } // Sets IP for ENet to bind when using create_server or create_client |