Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc
index 7bdadad..1fbcf26 100644
--- a/src/core/gameconnection.cc
+++ b/src/core/gameconnection.cc
@@ -262,14 +262,14 @@ void GameConnection::frame(unsigned long timestamp)
}
}
- // delete entities were required
- if (entity->destroyed()) {
+ // remove deleted entities
+ if ((*it).second->died()) {
+ delete (*it).second;
+ (*it).second = 0;
Entity::registry().erase(it++);
} else {
++it;
}
-
-
}
float f = 0;