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; } ////////////////////////////////////////////////////////////////////