diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index c967c5269..da087ee3c 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -723,7 +723,7 @@ void CConsole::ParseArguments(int NumArgs, const char **ppArguments) for(int i = 0; i < NumArgs; i++) { // check for scripts to execute - if(ppArguments[i][0] == '-' && ppArguments[i][1] == 'f' && ppArguments[i][2] == 0) + if(str_comp("-f", ppArguments[i]) == 0) { if(NumArgs - i > 1) ExecuteFile(ppArguments[i+1]);