Make the compiler shut up about initialization order.

This commit is contained in:
vrld
2011-03-10 13:35:18 +01:00
parent 3c7353be9d
commit e77b94f112
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -96,14 +96,14 @@ namespace box2d
}
World::World(b2AABB aabb)
: meter(DEFAULT_METER), world(NULL)
: world(NULL), meter(DEFAULT_METER)
{
world = new b2World(scaleDown(aabb), b2Vec2(0,0), true);
world->SetContactListener(this);
}
World::World(b2AABB aabb, b2Vec2 gravity, bool sleep, int meter)
: meter(meter), world(NULL)
: world(NULL), meter(meter)
{
world = new b2World(scaleDown(aabb), scaleDown(gravity), sleep);
world->SetContactListener(this);