removing a dead if-statement that was causing access violaion size_t(-1)
This commit is contained in:
parent
2b67de2818
commit
0dd40a8e20
1 changed files with 0 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue