1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 16:06:44 +00:00

Fix Clang warnings about hidden virtual methods

This commit is contained in:
Andrei Kortunov 2019-03-07 14:50:29 +04:00
parent dcec9df345
commit 72db11b56c
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ namespace Terrain
inline unsigned int getNumChildren() const { return _children.size(); } inline unsigned int getNumChildren() const { return _children.size(); }
// osg::Group::addChild() does a lot of unrelated stuff, but we just really want to add a child node. // osg::Group::addChild() does a lot of unrelated stuff, but we just really want to add a child node.
void addChild(QuadTreeNode* child) void addChildNode(QuadTreeNode* child)
{ {
// QuadTree node should not contain more than 4 child nodes. // QuadTree node should not contain more than 4 child nodes.
// Reserve enough space if this node is supposed to have child nodes. // Reserve enough space if this node is supposed to have child nodes.

View file

@ -165,7 +165,7 @@ public:
if (child) if (child)
{ {
boundingBox.expandBy(child->getBoundingBox()); boundingBox.expandBy(child->getBoundingBox());
parent->addChild(child); parent->addChildNode(child);
} }
} }