Revision: 7792
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7792&view=rev
Author:   thjc
Date:     2009-06-05 16:16:45 +0000 (Fri, 05 Jun 2009)

Log Message:
-----------
fix bad assert as per patch 2800395 for gazebo

Modified Paths:
--------------
    code/stage/trunk/libstageplugin/p_simulation.cc

Modified: code/stage/trunk/libstageplugin/p_simulation.cc
===================================================================
--- code/stage/trunk/libstageplugin/p_simulation.cc     2009-06-05 16:09:52 UTC 
(rev 7791)
+++ code/stage/trunk/libstageplugin/p_simulation.cc     2009-06-05 16:16:45 UTC 
(rev 7792)
@@ -128,9 +128,9 @@
 
   // steal the global clock - a bit aggressive, but a simple approach
 
-  if( GlobalTime ) delete GlobalTime;
-  assert( (GlobalTime = new StTime( driver ) ));
-
+  delete GlobalTime;
+  GlobalTime = new StTime( driver );
+  assert(GlobalTime);
   // start the simulation
   // printf( "  Starting world clock... " ); fflush(stdout);
   //stg_world_resume( world );


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to