From: <mg...@us...> - 2009-03-30 19:39:32
|
Revision: 32255 http://crystal.svn.sourceforge.net/crystal/?rev=32255&view=rev Author: mgist Date: 2009-03-30 19:39:26 +0000 (Mon, 30 Mar 2009) Log Message: ----------- - Fixed a crash caused by FreeLight wrongly updating the light's sector (and thus causing a bbox recalc) before removing it from the old sector's AABBTree. Modified Paths: -------------- CS/trunk/plugins/engine/3d/sector.cpp Modified: CS/trunk/plugins/engine/3d/sector.cpp =================================================================== --- CS/trunk/plugins/engine/3d/sector.cpp 2009-03-30 03:12:34 UTC (rev 32254) +++ CS/trunk/plugins/engine/3d/sector.cpp 2009-03-30 19:39:26 UTC (rev 32255) @@ -92,8 +92,8 @@ void csSectorLightList::FreeLight (iLight* item) { csLight* clight = static_cast<csLight*> (item); + lightTree.RemoveObject (clight); clight->SetSector (0); - lightTree.RemoveObject (clight); } void csSectorLightList::UpdateLightBounds (csLight* light, const csBox3& oldBox) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |