David Rose 22 роки тому
батько
коміт
0ff53d1ec1
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      panda/src/pgraph/transformState.cxx

+ 1 - 0
panda/src/pgraph/transformState.cxx

@@ -87,6 +87,7 @@ TransformState::
   // Free the inverse matrix computation, if it has been stored.
   // Free the inverse matrix computation, if it has been stored.
   if (_inv_mat != (LMatrix4f *)NULL) {
   if (_inv_mat != (LMatrix4f *)NULL) {
     delete _inv_mat;
     delete _inv_mat;
+    _inv_mat = (LMatrix4f *)NULL;
   }
   }
 
 
   // Remove the deleted TransformState object from the global pool.
   // Remove the deleted TransformState object from the global pool.