Skip to content

Commit

Permalink
- Clean initial state scenario variables
Browse files Browse the repository at this point in the history
  • Loading branch information
riojax committed Jan 13, 2022
1 parent fcb304c commit eab5ef9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Src/Orbiter/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ bool State::Read (const char *fname)
mjd0 = MJD (time (NULL)); // default to current system time
mjd0 += UTC_CT_diff*day; // map from UTC to CT (or TDB) time scales
mjd = mjd0;
memset (scnhelp, 0, 128); // no scenario help by default
memset (script, 0, 128); // no scenario script by default
memset (solsys, 0, 64); // no scenario solsys by default
memset (context, 0, 64); // no scenario context by default
memset (script, 0, 128); // no scenario script by default
memset (scnhelp, 0, 128); // no scenario help by default
memset (playback, 0, 128); // no scenario playback by default
memset (focus, 0, 64); // no scenario focus by default

if (FindLine (ifs, "BEGIN_ENVIRONMENT")) {
for (;;) {
Expand Down

0 comments on commit eab5ef9

Please sign in to comment.