diff --git a/rust/src/milla/api.rs b/rust/src/milla/api.rs index 84a9430b15e..8239cfc1d95 100644 --- a/rust/src/milla/api.rs +++ b/rust/src/milla/api.rs @@ -104,7 +104,9 @@ fn milla_load_turfs(data_property: ByondValue, low_corner: ByondValue, high_corn let property_ref = data_property.get_strid()?; for turf in byond_block(byond_xyz(&low_corner)?, byond_xyz(&high_corner)?)? { let (x, y, z) = byond_xyz(&turf)?.coordinates(); - let data = turf.read_var_id(property_ref)?.get_list_values()?; + let mut property = turf.read_var_id(property_ref)?; + let data = property.get_list_values()?; + property.decrement_ref(); if data.len() != 17 { return Err(eyre!("data property has the wrong length: {} vs {}", data.len(), 17)); } diff --git a/rustlibs.dll b/rustlibs.dll index 4cdd09ffcf6..4f034d0014c 100644 Binary files a/rustlibs.dll and b/rustlibs.dll differ diff --git a/rustlibs_prod.dll b/rustlibs_prod.dll index 2b01d3d2e5b..171ab58f914 100644 Binary files a/rustlibs_prod.dll and b/rustlibs_prod.dll differ diff --git a/tools/ci/librustlibs_ci.so b/tools/ci/librustlibs_ci.so index bfc6523cffe..dc862f2a558 100644 Binary files a/tools/ci/librustlibs_ci.so and b/tools/ci/librustlibs_ci.so differ