diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-28 19:37:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-28 19:37:31 +0000 |
commit | d389a31f9816b55d8c7685ec24b9ab814252d693 (patch) | |
tree | 9b2577692e543fa6c59fcda508f92c3eb839ac7a /src/render/render.cc | |
parent | 17408276791033e8122819185abf3bcb01740105 (diff) |
zone support
Diffstat (limited to 'src/render/render.cc')
-rw-r--r-- | src/render/render.cc | 3 |
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; } |