@@ -71,7 +71,7 @@ class UnitGraph extends JPanel implements MouseListener, MouseMotionListener, Co
@Override
public void mouseDragged(MouseEvent e) {
if (pointDrag) {
- pointList[tempP].setLocation(e.getX(), e.getY());
+ pointList[tempP].setLocation(pointList[TempP].getX(), e.getY());
System.out.println("drag");
}
repaint();