Error when adding a Battery
pnadalini opened this issue · 3 comments
pnadalini commented
I'm submitting a...
- [x ] Bug report.
- Feature request.
Bug report
What is the current behavior?
When you run the project and add a Battery, the program crashes.
What is the expected behavior?
It should add the Battery object in the map.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
- Click on the start button
- Grab the Battery from the bottom inventory
- Place it anywhere on the map
The error occurs in BatteryEntity.gd
in line 25
It tries to get the variable _power_indicator
and it should be _power_direction
according to the variables from that Entity.
NathanLovato commented
Just tested, I can confirm this. @Razoric480 may I let you look into it?
Razoric480 commented
Thanks. Missed this in some of the refactor
NathanLovato commented
Thanks @pnadalini for reporting the issue, and thanks for the fix @Razoric480 !