Kevin Trometer hace 8 años
padre
commit
c3d44a9262
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	@Override
 	public void mouseDragged(MouseEvent e) {
 	public void mouseDragged(MouseEvent e) {
 		if (pointDrag) {
 		if (pointDrag) {
-			pointList[tempP].setLocation(e.getX(), e.getY());
+			pointList[tempP].setLocation(pointList[TempP].getX(), e.getY());
 			System.out.println("drag");
 			System.out.println("drag");
 		}
 		}
 		repaint();
 		repaint();