From f406891947a175f3309db0facd7882afe5471508 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 17 Oct 2010 21:53:09 +0000 Subject: corrects segfault in ~Entity --- src/core/entity.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/entity.cc b/src/core/entity.cc index 2f8b8a5..7ff9d7b 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -146,7 +146,7 @@ Entity::Entity() : entity_model = 0; entity_body = 0; - entity_body = 0; + entity_body_info = 0; entity_motionstate = 0; entity_collision_shape = 0; @@ -185,7 +185,7 @@ Entity::Entity(std::istream & is) entity_model = 0; entity_body = 0; - entity_body = 0; + entity_body_info = 0; entity_motionstate = 0; entity_collision_shape = 0; @@ -236,8 +236,6 @@ Entity::~Entity() if (entity_body_info) delete entity_body_info; - - } void Entity::die() -- cgit v1.2.3