Skip to content

Commit

Permalink
fix hardcoded and wrong value
Browse files Browse the repository at this point in the history
  • Loading branch information
val-andrushko committed Apr 2, 2018
1 parent 2427c44 commit 77456d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OrionUO/Gumps/GumpBook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void CGumpBook::InsertInContent(const WPARAM &wparam, const bool &isCharPress)
if (linesCount > maxLinesCount)
{
int newPage = page + 1;
if (newPage <= 20)
if (newPage <= m_PageCount)
{
int current = g_EntryPointer->Pos();

Expand Down

0 comments on commit 77456d5

Please sign in to comment.