COBBTree: Remove use of operator bool directly

Same behavior, but more idiomatic.
This commit is contained in:
Lioncash 2020-04-06 01:00:28 -04:00
parent e34db8c0e6
commit c6952442c7
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ COBBTree::CNode::CNode(const zeus::CTransform& xf, const zeus::CVector3f& point,
std::unique_ptr<CNode>&& left, std::unique_ptr<CNode>&& right,
std::unique_ptr<CLeafData>&& 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)) {}