From: spog Date: Sat, 3 Jun 2006 12:52:35 +0000 (+0000) Subject: fixed save-region crash X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=731eeaa7f1c964dafc5cf0ab68e283a7494768b4;p=xonotic%2Fnetradiant.git fixed save-region crash git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@76 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/CHANGES b/CHANGES index e055d652..e7eeaede 100644 --- 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. diff --git a/radiant/map.cpp b/radiant/map.cpp index 67f528ec..91fb5c51 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -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)