Ver Fonte

work around compiler bug

David Rose há 15 anos atrás
pai
commit
93583d77bc
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      panda/src/pipeline/asyncTaskBase.cxx

+ 2 - 2
panda/src/pipeline/asyncTaskBase.cxx

@@ -54,8 +54,8 @@ record_task(Thread *current_thread) {
   // If the return value is other than NULL, someone else must have
   // assigned the task first, in another thread.  That shouldn't be
   // possible.
-  nassertv(current_thread->_current_task == this);
   nassertv(result == NULL);
+  nassertv(current_thread->_current_task == this);
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -75,6 +75,6 @@ clear_task(Thread *current_thread) {
   // If the return value is other than this, someone else must have
   // assigned the task first, in another thread.  That shouldn't be
   // possible.
-  nassertv(current_thread->_current_task == NULL);
   nassertv(result == this);
+  nassertv(current_thread->_current_task == NULL);
 }