[Orxonox-commit 3967] r8641 - code/branches/unity_build/src/libraries/network
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat May 28 18:33:41 CEST 2011
Author: rgrieder
Date: 2011-05-28 18:33:41 +0200 (Sat, 28 May 2011)
New Revision: 8641
Modified:
code/branches/unity_build/src/libraries/network/LANDiscovery.cc
Log:
Fixed little bug.
Modified: code/branches/unity_build/src/libraries/network/LANDiscovery.cc
===================================================================
--- code/branches/unity_build/src/libraries/network/LANDiscovery.cc 2011-05-28 16:14:15 UTC (rev 8640)
+++ code/branches/unity_build/src/libraries/network/LANDiscovery.cc 2011-05-28 16:33:41 UTC (rev 8641)
@@ -48,7 +48,8 @@
LANDiscovery::~LANDiscovery()
{
- enet_host_destroy(this->host_);
+ if (this->host_)
+ enet_host_destroy(this->host_);
}
void LANDiscovery::discover()
More information about the Orxonox-commit
mailing list