Skip to content

Commit

Permalink
Merge pull request #1329 from maxq519/flag
Browse files Browse the repository at this point in the history
Fix build warning in flag project
  • Loading branch information
indy91 authored Jan 15, 2025
2 parents 5388dfc + 7d7f3f0 commit 1cef9da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Orbitersdk/samples/ProjectApollo/src_moon/flag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ void Flag::clbkLoadStateEx(FILEHANDLE scn, void* vs)
char* line;
while (oapiReadScenario_nextline(scn, line)) {
if (!strnicmp(line, "LM_LIFTED_OFF", 13)) {
sscanf(line + 13, "%d", &(bool)liftedOff);
int value = 0;
sscanf(line + 13, "%d", &value);
if (value != 0) { liftedOff = true; }
}
else if (!strnicmp(line, "FLAG_FELL", 9)) {
sscanf(line + 9, "%d", &(bool)doFlagFall);
int value = 0;
sscanf(line + 9, "%d", &value);
if (value != 0) { doFlagFall = true; }
}
else {
ParseScenarioLineEx(line, vs);
Expand Down

0 comments on commit 1cef9da

Please sign in to comment.