Fix a segfault

There was a bug when a Polyhedral_mesh_domain_with_features_3 was
constructed with the default `Random* = 0`.
This commit is contained in:
Laurent Rineau 2014-07-18 16:35:43 +02:00
parent 3deb8e7910
commit 7c29e97263
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ public:
void set_random_generator(CGAL::Random* p_rng)
{
if(delete_rng_) delete p_rng_;
if(!p_rng_)
if(!p_rng)
{
p_rng_ = new CGAL::Random(0);
delete_rng_ = true;