Browse Source

fix for non pstats

Zachary Pavlov 17 years ago
parent
commit
a46399c662
1 changed files with 13 additions and 0 deletions
  1. 13 0
      panda/src/pstatclient/pStatCollector.I

+ 13 - 0
panda/src/pstatclient/pStatCollector.I

@@ -589,6 +589,19 @@ get_index() const {
 
 
 #else  // DO_PSTATS
 #else  // DO_PSTATS
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: PStatCollector::Default Constructor
+//       Access: Public
+//  Description: Creates an invalid PStatCollector.  Any attempt to
+//               use this collector will crash messily.
+//
+//               You can reassign it to a different, valid one later.
+////////////////////////////////////////////////////////////////////
+INLINE PStatCollector::
+PStatCollector()
+{
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: PStatCollector::Constructor
 //     Function: PStatCollector::Constructor
 //       Access: Published
 //       Access: Published