Skip to content

Commit

Permalink
Fix invalid playerNumber check
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Apr 2, 2018
1 parent 1766eab commit b950fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool CodeDetector::DetectAndAdjustMusicOptions( GameController controller )
{
PlayerNumber pn = INPUTMAPPER->ControllerToPlayerNumber( controller );

if (pn < NUM_PlayerNumber) {
if (pn >= NUM_PlayerNumber) {
LOG->Warn("Invalid controller player number");
return false;
}
Expand Down

0 comments on commit b950fc5

Please sign in to comment.