Permalink
Browse files

warning fix: initialisation order of m_showCameraBody in Camera const…

…ructor
  • Loading branch information...
1 parent 981a2c2 commit 12126f95162a040f387d1705400b2f46eebe5a19 @johnbartholomew johnbartholomew committed Oct 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Camera.cpp
View
@@ -18,7 +18,6 @@
using namespace Graphics;
Camera::Camera(const Body *body, float width, float height, float fovY, float znear, float zfar) :
- m_showCameraBody(true),
m_body(body),
m_width(width),
m_height(height),
@@ -28,6 +27,7 @@ Camera::Camera(const Body *body, float width, float height, float fovY, float zn
m_frustum(m_width, m_height, m_fovAng, znear, zfar),
m_pose(matrix4x4d::Identity()),
m_camFrame(0),
+ m_showCameraBody(true),
m_renderer(0)
{
m_onBodyDeletedConnection = m_body->onDelete.connect(sigc::mem_fun(this, &Camera::OnBodyDeleted));

0 comments on commit 12126f9

Please sign in to comment.