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>2008-07-28 19:37:31 +0000
committerStijn Buys <ingar@osirion.org>2008-07-28 19:37:31 +0000
commitd389a31f9816b55d8c7685ec24b9ab814252d693 (patch)
tree9b2577692e543fa6c59fcda508f92c3eb839ac7a /src/render/render.cc
parent17408276791033e8122819185abf3bcb01740105 (diff)
zone support
Diffstat (limited to 'src/render/render.cc')
-rw-r--r--src/render/render.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/render.cc b/src/render/render.cc
index cb0d4dd..dd5703a 100644
--- a/src/render/render.cc
+++ b/src/render/render.cc
@@ -108,8 +108,9 @@ void shutdown()
con_print << "^BShutting down renderer..." << std::endl;
// clear entity models, this will force a reload
- for (std::map<unsigned int, core::Entity *>::iterator it=core::Entity::registry.begin(); it != core::Entity::registry.end(); it++) {
+ for (core::Entity::Registry::iterator it = core::Entity::registry().begin(); it != core::Entity::registry().end(); it++) {
core::Entity *entity = (*it).second;
+
if (entity->model())
entity->entity_model = 0;
}