[Orxonox-commit 7167] r11784 - code/trunk/src/libraries/network

landauf at orxonox.net landauf at orxonox.net
Tue Feb 20 21:18:58 CET 2018


Author: landauf
Date: 2018-02-20 21:18:58 +0100 (Tue, 20 Feb 2018)
New Revision: 11784

Modified:
   code/trunk/src/libraries/network/FunctionCallManager.cc
Log:
this looks like a bug (detected by cppcheck -> https://www.orxonox.net/jenkins/view/Quality/job/orxonox_qc_trunk_checks/20/cppcheckResult/)

Modified: code/trunk/src/libraries/network/FunctionCallManager.cc
===================================================================
--- code/trunk/src/libraries/network/FunctionCallManager.cc	2018-02-19 23:14:40 UTC (rev 11783)
+++ code/trunk/src/libraries/network/FunctionCallManager.cc	2018-02-20 20:18:58 UTC (rev 11784)
@@ -73,7 +73,7 @@
   {
     OrxAssert( Host::getActiveInstance(), "No Host class existing" );
     if( it->second.first <= Host::getActiveInstance()->getLastReceivedGamestateID(it->second.second) && it->first.execute() )
-      FunctionCallManager::sIncomingFunctionCallBuffer_.erase(it);
+      FunctionCallManager::sIncomingFunctionCallBuffer_.erase(it++);
     else
     {
       ++it;



More information about the Orxonox-commit mailing list