Kevin Trometer 8 years ago
parent
commit
c3d44a9262
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ui/view/UnitGraph.java

+ 1 - 1
src/ui/view/UnitGraph.java

@@ -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();