CCollidableOBBTree: Don't cast away const in constructor

Same behavior, minus a cast.
This commit is contained in:
Lioncash 2020-04-06 07:11:31 -04:00
parent 0e0ca4caa9
commit 6e7e761126
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace urde {
u32 CCollidableOBBTree::sTableIndex = 0;
CCollidableOBBTree::CCollidableOBBTree(const COBBTree* tree, const urde::CMaterialList& material)
: CCollisionPrimitive(material), x10_tree((COBBTree*)tree) {}
: CCollisionPrimitive(material), x10_tree(tree) {}
bool CCollidableOBBTree::LineIntersectsLeaf(const COBBTree::CLeafData& leaf, CRayCastInfo& info) const {
bool ret = false;

View File

@ -31,7 +31,7 @@ public:
class CCollidableOBBTree : public CCollisionPrimitive {
friend class CCollidableOBBTreeGroup;
COBBTree* x10_tree = nullptr;
const COBBTree* x10_tree = nullptr;
u32 x14_tries = 0;
u32 x18_misses = 0;
u32 x1c_hits = 0;