Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed May 5, 2024
1 parent 25f26dc commit b62ff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct ScreenManager
}

static const BoxBounds& ScreenBounds(int screen) {
SDL_assert(screen > 0 && screen < screens.size());
SDL_assert(screen >= 0 && screen < screens.size());
return screens[screen];
}

Expand Down

0 comments on commit b62ff05

Please sign in to comment.