diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/zone.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/zone.cc b/src/core/zone.cc index a38959f..c298f78 100644 --- a/src/core/zone.cc +++ b/src/core/zone.cc @@ -141,6 +141,8 @@ Zone::Zone(std::istream & is) : Label() // client side does not setup a bullet physics environment zone_bullet_cache = 0; zone_bullet_world = 0; + zone_bullet_raycaster = 0; + receive_server_update(is); } @@ -152,12 +154,13 @@ Zone::~Zone() zone_content.clear(); - if (zone_bullet_raycaster) - delete zone_bullet_raycaster; - if (zone_bullet_world) delete zone_bullet_world; + + if (zone_bullet_raycaster) + delete zone_bullet_raycaster; + if (zone_bullet_cache) delete zone_bullet_cache; } |