Slight fix for corner case cmd/cvar completion

This commit is contained in:
Jay Dolan 2006-01-14 19:10:13 +00:00
parent 9fa7e5e7ba
commit 3ecc9cc96d
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ void CompleteCommand(void){
cvar = Cvar_CompleteVariable(partial); //so try cvars
if(cvar){ //found something
if(!strcmp(cvar, partial)) cmd = cvar; //exact cvar match
if(!cmd || !strcmp(cvar, partial)) cmd = cvar; //exact cvar match or no cmd
else cmd = NULL; //no exact match, partial for both
}
}