Skip to content

Commit ca061bc

Browse files
committed
Return non-null.
1 parent b84a021 commit ca061bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Material & Material::clone()
379379
mat->ttb_ = std::make_unique<Bremsstrahlung>(*ttb_);
380380

381381
model::materials.push_back(std::move(mat));
382-
return *mat;
382+
return *model::materials.back();
383383
}
384384

385385
void Material::finalize()

0 commit comments

Comments
 (0)