aboutsummaryrefslogtreecommitdiff
path: root/src/common/Collision/DynamicTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Collision/DynamicTree.cpp')
-rw-r--r--src/common/Collision/DynamicTree.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/Collision/DynamicTree.cpp b/src/common/Collision/DynamicTree.cpp
index dc21ebc44d8..1f5875fac0a 100644
--- a/src/common/Collision/DynamicTree.cpp
+++ b/src/common/Collision/DynamicTree.cpp
@@ -29,8 +29,6 @@
#include <G3D/Ray.h>
#include <G3D/Vector3.h>
-using VMAP::ModelInstance;
-
namespace {
int CHECK_TREE_PERIOD = 200;
@@ -47,7 +45,7 @@ template<> struct PositionTrait< GameObjectModel> {
template<> struct BoundsTrait< GameObjectModel> {
static void getBounds(GameObjectModel const& g, G3D::AABox& out) { out = g.getBounds();}
- static void getBounds2(GameObjectModel const* g, G3D::AABox& out) { out = g->getBounds();}
+ void operator()(GameObjectModel const* g, G3D::AABox& out) const { getBounds(*g, out); }
};
/*