From c6952442c7390f85cb09b11548228681aeca6c06 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 6 Apr 2020 01:00:28 -0400 Subject: [PATCH] COBBTree: Remove use of operator bool directly Same behavior, but more idiomatic. --- Runtime/Collision/COBBTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Collision/COBBTree.cpp b/Runtime/Collision/COBBTree.cpp index 0831d6c6f..90f68899b 100644 --- a/Runtime/Collision/COBBTree.cpp +++ b/Runtime/Collision/COBBTree.cpp @@ -194,7 +194,7 @@ COBBTree::CNode::CNode(const zeus::CTransform& xf, const zeus::CVector3f& point, std::unique_ptr&& left, std::unique_ptr&& right, std::unique_ptr&& leaf) : x0_obb(xf, point) -, x3c_isLeaf(leaf.operator bool()) +, x3c_isLeaf(leaf != nullptr) , x40_left(std::move(left)) , x44_right(std::move(right)) , x48_leaf(std::move(leaf)) {}