gdquest-demos/godot-2d-builder

Error when adding a Battery

pnadalini opened this issue · 3 comments

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.

  1. Click on the start button
  2. Grab the Battery from the bottom inventory
  3. 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.

Just tested, I can confirm this. @Razoric480 may I let you look into it?

Thanks. Missed this in some of the refactor

Thanks @pnadalini for reporting the issue, and thanks for the fix @Razoric480 !