[Orxonox-commit 3053] r7749 - code/branches/presentation/src/libraries/network

smerkli at orxonox.net smerkli at orxonox.net
Wed Dec 8 17:56:34 CET 2010


Author: smerkli
Date: 2010-12-08 17:56:33 +0100 (Wed, 08 Dec 2010)
New Revision: 7749

Modified:
   code/branches/presentation/src/libraries/network/WANDiscovery.cc
Log:
whoops, I did it again. sorry.

Modified: code/branches/presentation/src/libraries/network/WANDiscovery.cc
===================================================================
--- code/branches/presentation/src/libraries/network/WANDiscovery.cc	2010-12-08 16:45:40 UTC (rev 7748)
+++ code/branches/presentation/src/libraries/network/WANDiscovery.cc	2010-12-08 16:56:33 UTC (rev 7749)
@@ -95,9 +95,9 @@
 
       /* fill in data, -1 for the index: index should be length -1 */
       toadd.setServerName( std::string((char*)ev->packet->data + 
-        MSPROTO_SERVERLIST_ITEM_LEN-1) );
+        MSPROTO_SERVERLIST_ITEM_LEN+1) );
       toadd.setServerIP( std::string((char*)ev->packet->data + 
-        MSPROTO_SERVERLIST_ITEM_LEN-1) );
+        MSPROTO_SERVERLIST_ITEM_LEN+1) );
 
       /* add to list */
       WANDiscovery::getInstance().servers_.push_back( toadd );
@@ -105,7 +105,7 @@
     else if( !strncmp( (char*)ev->packet->data, MSPROTO_SERVERLIST_END,
       MSPROTO_SERVERLIST_END_LEN ) )
     { 
-      /* this is the only case where 1 should be returned,
+      /* this is the only case where 2 should be returned,
        * as 1 is used to signal that we're done receiving
        * the list
        */




More information about the Orxonox-commit mailing list