mirror of https://github.com/AxioDL/metaforce.git
COBBTree: Remove use of operator bool directly
Same behavior, but more idiomatic.
This commit is contained in:
parent
e34db8c0e6
commit
c6952442c7
|
@ -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<CNode>&& left, std::unique_ptr<CNode>&& right,
|
||||||
std::unique_ptr<CLeafData>&& leaf)
|
std::unique_ptr<CLeafData>&& leaf)
|
||||||
: x0_obb(xf, point)
|
: x0_obb(xf, point)
|
||||||
, x3c_isLeaf(leaf.operator bool())
|
, x3c_isLeaf(leaf != nullptr)
|
||||||
, x40_left(std::move(left))
|
, x40_left(std::move(left))
|
||||||
, x44_right(std::move(right))
|
, x44_right(std::move(right))
|
||||||
, x48_leaf(std::move(leaf)) {}
|
, x48_leaf(std::move(leaf)) {}
|
||||||
|
|
Loading…
Reference in New Issue