mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Make the compiler shut up about initialization order.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user