From b9d4ba323c88a019e47ef767c6fc645b499779dc Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 12 Feb 2003 03:11:40 +0000 Subject: [PATCH] Bugfix: which quit scanning sub if deleted next to last message. --- src/sbbs3/readmsgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/readmsgs.cpp b/src/sbbs3/readmsgs.cpp index 868ad1bc08..557cef035a 100644 --- a/src/sbbs3/readmsgs.cpp +++ b/src/sbbs3/readmsgs.cpp @@ -739,7 +739,7 @@ int sbbs_t::scanposts(uint subnum, long mode, char *find) && sub_op(subnum))) && smb.curmsg<smb.msgs-1) smb.curmsg++; - if(smb.curmsg>=smb.msgs-1) + if(smb.curmsg>=smb.msgs) done=1; break; case 'E': /* edit last post */ -- GitLab