From: Pasi Kallinen Date: Mon, 21 May 2012 14:32:50 +0000 (+0300) Subject: Fix virus crash X-Git-Tag: v1.6.1-roc-dev~78 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=25ee1a338628d68664a50a979d6bbb9f04479a2f;p=dgamelaunch Fix virus crash --- diff --git a/virus.c b/virus.c index 469173c..2742df9 100644 --- a/virus.c +++ b/virus.c @@ -1178,6 +1178,7 @@ do_cmd (Byte c) // user changed mind and erased the "/"- do nothing break; case 'N': // N- backward search for last pattern + if (last_search_pattern == 0) break; if (cmdcnt-- > 1) { do_cmd (c);