mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Fix size_t underflow for journals with 1 page (Fixes #1958)
This commit is contained in:
parent
c010c28337
commit
795dfdb557
@ -490,7 +490,7 @@ namespace
|
|||||||
unsigned int & page = mStates.top ().mPage;
|
unsigned int & page = mStates.top ().mPage;
|
||||||
Book book = mStates.top ().mBook;
|
Book book = mStates.top ().mBook;
|
||||||
|
|
||||||
if (page < book->pageCount () - 2)
|
if (page+2 < book->pageCount())
|
||||||
{
|
{
|
||||||
page += 2;
|
page += 2;
|
||||||
updateShowingPages ();
|
updateShowingPages ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user