1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Fix size_t underflow for journals with 1 page (Fixes #1958)

This commit is contained in:
scrawl 2014-09-30 18:14:25 +02:00
parent c010c28337
commit 795dfdb557

View file

@ -490,7 +490,7 @@ namespace
unsigned int & page = mStates.top ().mPage;
Book book = mStates.top ().mBook;
if (page < book->pageCount () - 2)
if (page+2 < book->pageCount())
{
page += 2;
updateShowingPages ();