From 0c2b6e31642580550e856e5d488bf77bd474efeb Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 27 Nov 2007 01:15:26 +0000 Subject: [PATCH] threaded pstats fix --- panda/src/pstatclient/pStatClient.I | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/pstatclient/pStatClient.I b/panda/src/pstatclient/pStatClient.I index 7b1cd7dc80..d4723f9498 100644 --- a/panda/src/pstatclient/pStatClient.I +++ b/panda/src/pstatclient/pStatClient.I @@ -156,7 +156,10 @@ get_thread_object(int index) const { //////////////////////////////////////////////////////////////////// INLINE double PStatClient:: get_real_time() const { - return get_impl()->get_real_time(); + if (has_impl()) { + return _impl->get_real_time(); + } + return 0.0f; } ////////////////////////////////////////////////////////////////////