[Orxonox-commit 3051] r7747 - code/branches/presentation/src/libraries/network
smerkli at orxonox.net
smerkli at orxonox.net
Wed Dec 8 17:43:21 CET 2010
Author: smerkli
Date: 2010-12-08 17:43:21 +0100 (Wed, 08 Dec 2010)
New Revision: 7747
Modified:
code/branches/presentation/src/libraries/network/WANDiscovery.cc
Log:
removed the space in the WANDiscovery list (hopefully)
Modified: code/branches/presentation/src/libraries/network/WANDiscovery.cc
===================================================================
--- code/branches/presentation/src/libraries/network/WANDiscovery.cc 2010-12-08 16:36:22 UTC (rev 7746)
+++ code/branches/presentation/src/libraries/network/WANDiscovery.cc 2010-12-08 16:43:21 UTC (rev 7747)
@@ -93,11 +93,11 @@
/* create server structure from that item */
packet::ServerInformation toadd;
- /* fill in data */
+ /* fill in data, -1 for the index: index should be length -1 */
toadd.setServerName( std::string((char*)ev->packet->data +
- MSPROTO_SERVERLIST_ITEM_LEN) );
+ MSPROTO_SERVERLIST_ITEM_LEN)-1 );
toadd.setServerIP( std::string((char*)ev->packet->data +
- MSPROTO_SERVERLIST_ITEM_LEN) );
+ MSPROTO_SERVERLIST_ITEM_LEN)-1 );
/* add to list */
WANDiscovery::getInstance().servers_.push_back( toadd );
More information about the Orxonox-commit
mailing list