Skip to content

Commit f13b36e

Browse files
committed
pickling the xyz tiles
1 parent c3db0bc commit f13b36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utiles-pyo3/src/pyutiles/pytile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl PyTile {
5050
}
5151

5252
fn __getnewargs__<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyTuple>> {
53-
PyTuple::new(py, [self.xyz.x(), self.xyz.y(), self.xyz.z() as u32])
53+
PyTuple::new(py, [self.x(), self.y(), u32::from(self.z())])
5454
}
5555

5656
pub fn valid(&self) -> bool {

0 commit comments

Comments
 (0)