]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fixed save-region crash
authorspog <spog@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 3 Jun 2006 12:52:35 +0000 (12:52 +0000)
committerspog <spog@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 3 Jun 2006 12:52:35 +0000 (12:52 +0000)
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@76 8a3a26a2-13c4-0310-b231-cf6edde360e5

CHANGES
radiant/map.cpp

diff --git a/CHANGES b/CHANGES
index e055d6522dd9f96b99d9d868c8db481ff56694b2..e7eeaede95ad3d54d85c365a8b3f911167ab11fd 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 67f528ec30a7069331ebdd6a1014b99959b41c6d..91fb5c51d24d4f8cdf891abfb025ae149c02f423 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)