aboutsummaryrefslogtreecommitdiff
path: root/charselect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'charselect.cpp')
-rw-r--r--charselect.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/charselect.cpp b/charselect.cpp
index ac73ac2..54286b2 100644
--- a/charselect.cpp
+++ b/charselect.cpp
@@ -158,6 +158,8 @@ void Courtroom::put_button_in_place(int starting, int chars_on_this_page)
char_columns = ((ui_char_buttons->width() - button_width) / (x_spacing + button_width)) + 1;
char_rows = ((ui_char_buttons->height() - button_height) / (y_spacing + button_height)) + 1;
+ max_chars_on_page = char_columns * char_rows;
+
int startout = starting;
for (int n = starting ; n < startout+chars_on_this_page ; ++n)
{