Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/zone.cc9
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;
}