Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7771 in orxonox.OLD for trunk/src/lib/shell/shell_input.cc


Ignore:
Timestamp:
May 23, 2006, 2:19:54 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Fixed a Bug in the Shell Exection, that compromised a Vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_input.cc

    r7729 r7771  
    175175
    176176    // adding the new Command to the History
    177     if (history.back() != this->inputLine)
     177    if (history.empty() || history.back() != this->inputLine)
    178178      this->history.push_back(this->inputLine);
    179179    if (this->history.size() > this->historyLength)
Note: See TracChangeset for help on using the changeset viewer.