Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-10 22:23:50 +0000
committerStijn Buys <ingar@osirion.org>2013-11-10 22:23:50 +0000
commit8039544940b6145dcc8c63bcd4e06073ed61801e (patch)
treef3adf9eebb1ffe6a8c53e57c64546eeaa61a3517 /src/core/entityprojectile.cc
parent3b75b41676bd2851b6d2b61d3e3213ee50078870 (diff)
Renamed entity_destroyed to entity_died to prevent confusion with the Entity::Destroyed state,
fixed a potential memory leak.
Diffstat (limited to 'src/core/entityprojectile.cc')
-rw-r--r--src/core/entityprojectile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/entityprojectile.cc b/src/core/entityprojectile.cc
index 108d347..440c46b 100644
--- a/src/core/entityprojectile.cc
+++ b/src/core/entityprojectile.cc
@@ -104,7 +104,7 @@ void EntityProjectile::reset()
}
// remove Docked and Destroyed entities from the physics simulation
- if (destroyed() || (state() == Entity::Docked) || (state() == Entity::Destroyed)) {
+ if (died() || (state() == Entity::Docked) || (state() == Entity::Destroyed)) {
if (entity_body) {