diff --git a/Patrones/src/common/PaintableFactory.java b/Patrones/src/common/PaintableFactory.java index f44d8b8..59ecc40 100644 --- a/Patrones/src/common/PaintableFactory.java +++ b/Patrones/src/common/PaintableFactory.java @@ -9,7 +9,8 @@ public class PaintableFactory { private boolean useImage = true; public Paintable create(int x1, int y1, int x2, int y2, int state) { - if (useImage) { + //Se le asigna la condicion al if ya que no contenia dicha condicion y generaba error + if (useImage = false) { return new ImageFace(x1, y1, x2, y2, state); } else { return new DrawnFace(x1, y1, x2, y2, state);