Preferences: fixed a crash in new hotkey categories

This commit is contained in:
Charles Dang 2016-08-29 17:45:44 +11:00
parent 7bf1e33e50
commit 7be3e45472

View file

@ -870,7 +870,7 @@ void tpreferences::initialize_members(twindow& window)
// HKCAT_PLACEHOLDER intentionally excluded (it shouldn't have any anyway)
};
for(int i = 0; i <= hotkey::HKCAT_PLACEHOLDER; i++) {
for(int i = 0; i < hotkey::HKCAT_PLACEHOLDER; i++) {
row_data["cat_label"]["label"] = cat_names[i];
hotkey_categories.add_row(row_data);
hotkey_categories.select_row(hotkey_categories.get_item_count() - 1);