Skip to content
Snippets Groups Projects
Commit 74a3a629 authored by Molnár Gergő's avatar Molnár Gergő
Browse files

Fixed an error causing a null pointer to be thrown

parent 8d59d129
No related branches found
No related tags found
1 merge request!51Added SFX
Pipeline #28175 passed
......@@ -51,7 +51,7 @@ public class Tower extends Sprite {
}
public Tower(TowerType type) {
super(type.getImagePath());
super(new Point2D(0,0), type.getImagePath());
this.attack = type.getAttack();
this.hp = type.getHp();
this.range = type.getRange();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment