Advertisement
dominus

Untitled

Nov 15th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.53 KB | None | 0 0
  1. diff --git a/gumps/Spellbook_gump.cc b/gumps/Spellbook_gump.cc
  2. index 68cbd3c..19e07b1 100644
  3. --- a/gumps/Spellbook_gump.cc
  4. +++ b/gumps/Spellbook_gump.cc
  5. @@ -164,6 +164,10 @@ bool Bookmark_button::activate(
  6.     int bmpage = sgump->book->bookmark / 8; // Bookmark's page.
  7.     // On a different, valid page?
  8.     if (bmpage >= 0 && bmpage != sgump->page)
  9. +       while (bmpage < sgump->page)
  10. +           sgump->change_page(-1);
  11. +       while (bmpage > sgump->page)
  12. +               sgump->change_page(1);
  13.         sgump->change_page(bmpage - sgump->page);
  14.     return true;
  15.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement