Browse Source

Merge pull request #263 from giact/develop

Fixed an array bound check in Main::on_debugStep_triggered()
cl-refactor
Gav Wood 11 years ago
parent
commit
013e764ecd
  1. 2
      alethzero/MainWin.cpp

2
alethzero/MainWin.cpp

@ -1513,7 +1513,7 @@ void Main::on_create_triggered()
void Main::on_debugStep_triggered()
{
auto l = m_history[ui->debugTimeline->value()].levels.size();
if (ui->debugTimeline->value() < m_history.size() && m_history[ui->debugTimeline->value() + 1].levels.size() > l)
if ((ui->debugTimeline->value() + 1) < m_history.size() && m_history[ui->debugTimeline->value() + 1].levels.size() > l)
{
on_debugStepInto_triggered();
if (m_history[ui->debugTimeline->value()].levels.size() > l)

Loading…
Cancel
Save