fix a segfault, reported #23243

This commit is contained in:
Chris Beck 2015-04-06 15:23:39 -04:00
parent eb2a30bacc
commit 42ce10d135

View file

@ -285,6 +285,7 @@ void command_executor::set_button_state(display& disp) {
BOOST_FOREACH(const theme::action& action, disp.get_theme().actions()) {
gui::button* button = disp.find_action_button(action.get_id());
if (!button) continue;
bool enabled = false;
int i = 0;
BOOST_FOREACH(const std::string& command, action.items()) {