rust/mapgen/src/lib.rs
branchtransitional_engine
changeset 16044 5c941f5deeec
parent 16035 0caa3dfb3ba2
child 16064 07cb6dbc8444
--- a/rust/mapgen/src/lib.rs	Fri Nov 29 22:29:58 2024 +0100
+++ b/rust/mapgen/src/lib.rs	Sun Dec 01 21:08:03 2024 +0100
@@ -139,7 +139,7 @@
                     indices
                         .indices
                         .iter()
-                        .map(|i| Into::<OutlineTemplate>::into(&templates[*i]))
+                        .map(|i| Into::<OutlineTemplate>::into(templates[*i].clone()))
                         .map(|o| {
                             if indices.force_invert == Some(true) {
                                 o.cavern()