summaryrefslogtreecommitdiff
path: root/core/math/bvh.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/bvh.h')
-rw-r--r--core/math/bvh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/bvh.h b/core/math/bvh.h
index 9de704834b..9041d168ed 100644
--- a/core/math/bvh.h
+++ b/core/math/bvh.h
@@ -784,7 +784,7 @@ private:
if (p_thread_safe) {
_mutex = p_mutex;
- if (_mutex->try_lock() != OK) {
+ if (!_mutex->try_lock()) {
WARN_PRINT("Info : multithread BVH access detected (benign)");
_mutex->lock();
}