diff --git a/tools/Runtime Condenser/Main.cpp b/tools/Runtime Condenser/Main.cpp index 1fc580dd4d7..d59f3e1e8b6 100644 --- a/tools/Runtime Condenser/Main.cpp +++ b/tools/Runtime Condenser/Main.cpp @@ -378,7 +378,7 @@ int main(int argc, const char * argv[]) { ios_base::sync_with_stdio(false); ios::sync_with_stdio(false); bool usestdio = false; - if (argc && !strcmp(argv[0], "-s")) + if (argc >= 2 && !strcmp(argv[1], "-s")) usestdio = true; char exit; //Used to stop the program from immediately exiting