fixed save-region crash
authorspog <spog>
Sat, 3 Jun 2006 12:52:35 +0000 (12:52 +0000)
committerspog <spog>
Sat, 3 Jun 2006 12:52:35 +0000 (12:52 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@76 8a3a26a2-13c4-0310-b231-cf6edde360e5

CHANGES
radiant/map.cpp

diff --git a/CHANGES b/CHANGES
index e055d65..e7eeaed 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,11 @@
 This is the changelog for developers, != changelog for the end user 
 that we distribute with the binaries. (see changelog)
 
+03/06/2006
+SPoG
+- Changed doom3 entity creation to add model key for brush-entities.
+- Fixed crash in Save Region.
+
 29/05/2006
 SPoG
 - Changed default doom3 light_radius to be taken from the entity-definition.
index 67f528e..91fb5c5 100644 (file)
@@ -1408,7 +1408,7 @@ void AddRegionBrushes (void)
   for(i=0; i<6; i++)
   {
     region_sides[i] = &GlobalBrushCreator().createBrush();
-    Node_getTraversable(Map_FindOrInsertWorldspawn(g_map))->insert(*region_sides[i]);
+    Node_getTraversable(Map_FindOrInsertWorldspawn(g_map))->insert(NodeSmartReference(*region_sides[i]));
   }
 
   region_startpoint = &GlobalEntityCreator().createEntity(GlobalEntityClassManager().findOrInsert("info_player_start", false));
@@ -1416,7 +1416,7 @@ void AddRegionBrushes (void)
   ConstructRegionBrushes(region_sides, region_mins, region_maxs);
   ConstructRegionStartpoint(region_startpoint, region_mins, region_maxs);
 
-  Node_getTraversable(GlobalSceneGraph().root())->insert(*region_startpoint);
+  Node_getTraversable(GlobalSceneGraph().root())->insert(NodeSmartReference(*region_startpoint));
 }
 
 void RemoveRegionBrushes (void)