Skip to content

Commit

Permalink
Fix 0 IQ null pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 17, 2018
1 parent cc09585 commit a6f9269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,8 @@ ScreenSelectMusic::AfterStepsOrTrailChange(const vector<PlayerNumber>& vpns)
Steps* pSteps = m_vpSteps.empty() ? NULL : m_vpSteps[m_iSelection[pn]];

GAMESTATE->m_pCurSteps[pn].Set(pSteps);
GAMESTATE->SetCompatibleStyle(pSteps->m_StepsType, pn);
if (pSteps != nullptr)
GAMESTATE->SetCompatibleStyle(pSteps->m_StepsType, pn);

int iScore = 0;
if (pSteps) {
Expand Down

0 comments on commit a6f9269

Please sign in to comment.