From 763727fbb1bef79ef3e97b72bb6ab1426cd04638 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 12 Jan 2015 21:34:47 +0100 Subject: [PATCH] attempted crash fix --- panda/src/pgraph/pandaNode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/pandaNode.cxx b/panda/src/pgraph/pandaNode.cxx index d546718567..be783109fa 100644 --- a/panda/src/pgraph/pandaNode.cxx +++ b/panda/src/pgraph/pandaNode.cxx @@ -4836,7 +4836,7 @@ check_cached(bool update_bounds) const { int pipeline_stage = _current_thread->get_pipeline_stage(); PandaNode::CDLockedStageReader fresh_cdata(_node->_cycler, pipeline_stage, _current_thread); if (fresh_cdata->_last_update == fresh_cdata->_next_update && - (!update_bounds || _cdata->_external_bounds != NULL)) { + (!update_bounds || fresh_cdata->_last_bounds_update == fresh_cdata->_next_update)) { // What luck, some other thread has already freshened the // cache for us. Save the new pointer, and let the lock // release itself.