SourceForge: love/love: changeset 137:38dc19cb5b9e
Some destructors in love.physics were non-virtual.
authorrude
Tue Nov 10 20:24:29 2009 +0100 (2 weeks ago)
changeset 13738dc19cb5b9e
parent 136627d269cd88c
child 138ec84989ce60c
Some destructors in love.physics were non-virtual.
src/modules/physics/box2d/Body.h
src/modules/physics/box2d/Contact.h
src/modules/physics/box2d/World.h
     1.1 --- a/src/modules/physics/box2d/Body.h	Sun Nov 08 17:16:42 2009 +0100
     1.2 +++ b/src/modules/physics/box2d/Body.h	Tue Nov 10 20:24:29 2009 +0100
     1.3 @@ -75,7 +75,7 @@
     1.4  		**/ 
     1.5  		Body(World * world, b2Vec2 p, float m, float i);
     1.6  
     1.7 -		~Body();
     1.8 +		virtual ~Body();
     1.9  
    1.10  		/**
    1.11  		* Gets the current x-position of the Body.
     2.1 --- a/src/modules/physics/box2d/Contact.h	Sun Nov 08 17:16:42 2009 +0100
     2.2 +++ b/src/modules/physics/box2d/Contact.h	Tue Nov 10 20:24:29 2009 +0100
     2.3 @@ -65,7 +65,7 @@
     2.4  		**/
     2.5  		Contact(World * world, const b2ContactPoint * point);
     2.6  
     2.7 -		~Contact();
     2.8 +		virtual ~Contact();
     2.9  
    2.10  		/**
    2.11  		* Gets the position of the Contact.
     3.1 --- a/src/modules/physics/box2d/World.h	Sun Nov 08 17:16:42 2009 +0100
     3.2 +++ b/src/modules/physics/box2d/World.h	Tue Nov 10 20:24:29 2009 +0100
     3.3 @@ -107,7 +107,7 @@
     3.4  		**/
     3.5  		World(b2AABB aabb, b2Vec2 gravity, bool sleep);
     3.6  
     3.7 -		~World();
     3.8 +		virtual ~World();
     3.9  
    3.10  		/**
    3.11  		* Updates everything in the world one timestep.