[Orxonox-commit 7312] r11929 - code/branches/Masterserver_FS18/src/libraries/network

mdedial at orxonox.net mdedial at orxonox.net
Thu May 3 13:48:27 CEST 2018


Author: mdedial
Date: 2018-05-03 13:48:27 +0200 (Thu, 03 May 2018)
New Revision: 11929

Modified:
   code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc
Log:
Fix intermittent segfault caused by insufficient checking of pointer values.


Modified: code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc
===================================================================
--- code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc	2018-05-03 11:46:20 UTC (rev 11928)
+++ code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc	2018-05-03 11:48:27 UTC (rev 11929)
@@ -157,7 +157,7 @@
   bool GamestateManager::getSnapshot()
   {
     // Delete current gamestate
-    if (this->currentGamestate_ != nullptr)
+    if (this->currentGamestate_)
     {
       delete this->currentGamestate_;
     }



More information about the Orxonox-commit mailing list