fix: Invert null argument check (oops)

This commit is contained in:
Vsevolod Kremianskii 2021-01-02 20:52:58 +07:00
parent 67046ec414
commit 560b09a9b7

View file

@ -42,7 +42,7 @@ static const int kDefaultMovieVolume = 85;
static const int kDefaultMultiplayerPort = 2003;
Program::Program(int argc, char **argv) : _argc(argc), _argv(argv) {
if (argv) {
if (!argv) {
throw invalid_argument("argv must not be null");
}
}