mirror of https://github.com/CGAL/cgal
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:
parent
3deb8e7910
commit
7c29e97263
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue