diff options
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 91c03c2d2..028fd9409 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -633,6 +633,7 @@ struct TooltipsWindow : public Window { this->string_id = str; assert(sizeof(this->params[0]) == sizeof(params[0])); + assert(paramcount <= lengthof(this->params)); memcpy(this->params, params, sizeof(this->params[0]) * paramcount); this->paramcount = paramcount; this->use_left_mouse_button = use_left_mouse_button; |