Skip to content
Snippets Groups Projects
Commit e3caaea6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix nasty memory bug
parent 281cfb04
Branches
Tags
No related merge requests found
...@@ -226,9 +226,10 @@ private: ...@@ -226,9 +226,10 @@ private:
void changeTetRadius ( iterator it , double r) void changeTetRadius ( iterator it , double r)
{ {
MTet4 *t = *it;
allTets.erase(it); allTets.erase(it);
(*it)->forceRadius(r); t->forceRadius(r);
allTets.insert(*it); allTets.insert(t);
} }
container & getAllTets () {return allTets;} container & getAllTets () {return allTets;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment