diff --git a/plugins/mousequery.cpp b/plugins/mousequery.cpp index 2da47d8cd..7f0095c58 100644 --- a/plugins/mousequery.cpp +++ b/plugins/mousequery.cpp @@ -65,7 +65,7 @@ static df::coord get_mouse_pos(int32_t &mx, int32_t &my) pos.x = vx + mx - 1; pos.y = vy + my - 1; - pos.z = vz - Gui::getDepthAt(pos.x, pos.y); + pos.z = vz - Gui::getDepthAt(mx, my); return pos; }