S-C-A-N / SCANsat

Real Scanning, Real Science, at Warp Speed!
217 stars 97 forks source link

Bug in source code compilation #253

Closed brustmopf closed 7 years ago

brustmopf commented 7 years ago

Hi, Compiliing the srouce from the release branch, I encountered a crash on mainmenu load due to a call to FlightGlobals.currentMainBody in Scancontroller.cs

I tried to add a if(FlightGlobals.currentMainBody!=null) block to avoid this, but it crashes a bit further...

The strange thing is that this doesn't occur with the released dll v16.11.

Is there a difference between the code behind the release dll and the code in the branch "release of the repo"

brustmopf commented 7 years ago

It's actually a compiler config issue: don't optimize the code nor define the DEBUG constant...

Nothing to do with Scansat. My bad...