removing a dead if-statement that was causing access violaion size_t(-1)

This commit is contained in:
Patrick Parker 2006-05-06 07:56:06 +00:00
parent 2b67de2818
commit 0dd40a8e20

View file

@ -1363,10 +1363,6 @@ bool event_handler::handle_event_command(const queued_event& event_info,
throw replay::error();
}
if(size_t(option_chosen) >= options.size()) {
option_chosen = 0;
}
const std::string& val = (*(action->get_children("choose").front()))["value"];
option_chosen = atol(val.c_str());
}