From 91be4f6521fae2cf1ed1d2613ed3d4d88f4e3fb3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 11 Mar 2023 07:50:33 +0300 Subject: [PATCH] engine: common: cmd: fix inverted check in apropos --- engine/common/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index 0b36fcd3..f4d673c7 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -1264,7 +1264,7 @@ static void Cmd_Apropos_f( void ) partial = Cmd_Args(); - if( Q_strpbrk( partial, "*?" )) + if( !Q_strpbrk( partial, "*?" )) { Q_snprintf( buf, sizeof( buf ), "*%s*", partial ); partial = buf;