MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
167 stars 49 forks source link

findFirstChild() uses getClass().equals instead of isInstance #276

Closed i-make-robots closed 8 months ago

i-make-robots commented 8 months ago

Describe the bug BehaviorTreeRunner looks for first child Behavior. Repeat extends Behavior. BehaviorTreeRunner cannot find it because getClass().equals says "no" where type.isInstance(child) says "yes".