Use unique_ptr consistently for global vectors

This commit is contained in:
Paul Romano 2019-02-26 22:24:07 -06:00
parent 4877ffcccd
commit 38e39c4486
18 changed files with 78 additions and 95 deletions

View file

@ -666,7 +666,7 @@ void position_rgb(Particle p, Plot pl, RGBColor& rgb, int& id)
} else {
if (PlotColorBy::mats == pl.color_by_) {
// Assign color based on material
Cell* c = model::cells[p.coord[j].cell];
const auto& c = model::cells[p.coord[j].cell];
if (c->type_ == FILL_UNIVERSE) {
// If we stopped on a middle universe level, treat as if not found
rgb = pl.not_found_;