diff --git a/plugins/automaterial.cpp b/plugins/automaterial.cpp index 773beb708..ea7fd7457 100644 --- a/plugins/automaterial.cpp +++ b/plugins/automaterial.cpp @@ -897,7 +897,8 @@ struct jobutils_hook : public df::viewscreen_dwarfmodest void move_cursor(coord32_t &pos) { - move_cursor(df::coord((int16_t) pos.x, (int16_t) pos.y, (int16_t) pos.z)); + df::coord c((int16_t) pos.x, (int16_t) pos.y, (int16_t) pos.z); + move_cursor(c); } void apply_box_selection(bool new_start)