mjansen4857 / pathplanner

A simple yet powerful path planning tool for FRC robots
https://pathplanner.dev
MIT License
393 stars 116 forks source link

fixed static initalization in NamedCommands #682 #685

Closed r4stered closed 4 days ago

r4stered commented 4 months ago

This fixes the static initialization order in NamedCommands by creating a function that initializes the variable on first use. This is the recommended fix by Isocpp

https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use-members