瀏覽代碼

assertion to prevent crash

David Rose 20 年之前
父節點
當前提交
56a7c5b2fd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pandatool/src/pstatserver/pStatReader.cxx

+ 1 - 0
pandatool/src/pstatserver/pStatReader.cxx

@@ -308,6 +308,7 @@ void PStatReader::
 dequeue_frame_data() {
   while (!_queued_frame_data.empty()) {
     const FrameData &data = _queued_frame_data.front();
+    nassertv(_client_data != (PStatClientData *)NULL); 
 
     // Check to see if any new collectors have level data.
     int num_levels = data._frame_data->get_num_levels();