KSP-Telemachus / Telemachus

KSP telemetry in the web browser
189 stars 50 forks source link

Refresh the sensor cache when the cache vessel is changed #53

Closed ndevenish closed 9 years ago

ndevenish commented 9 years ago

Fixes bug whereby the first time sensors are called on, returns a value saying there are no sensors.

This is because SensorCache has a null vessel until assigned during the "s.*" API evaluation, but the vessel was only scanned in every TelemachusBehaviour::Update.

Hurrah for spending hours chasing bugs in my code only to find it isn't what I've changed :satisfied:!