missioncommand / mil-sym-js

(RETIRED) MIL-STD-2525 symbol rendering JavaScript library for modern web applications
Apache License 2.0
76 stars 25 forks source link

fixed friend units color setters into RendererSettings #45

Closed ivanKyka closed 2 years ago

ivanKyka commented 2 years ago

Hi, it's me again 😁

Found bug into RendererSettings when I was trying to change color of friend units.

When I calls setFriendlyUnitLineColor, he sets value into context of RendererSettings. But getters read values from local variables which inits into constructor function.

michael-spinelli commented 2 years ago

nice catch