Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11762


Ignore:
Timestamp:
Feb 18, 2018, 1:02:47 AM (7 years ago)
Author:
landauf
Message:

[FlappyOrx_HS17] bugfix: always check for queue size before accessing front()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc

    r11760 r11762  
    9090        }
    9191        //Delete Asteroids which are not visible anymore
    92         while((this->asteroids.front())->getPosition().x<x-tubeOffsetX){
     92        while(this->asteroids.size()!=0&&(this->asteroids.front())->getPosition().x<x-tubeOffsetX){
    9393            MovableEntity* deleteMe = asteroids.front();
    9494            asteroids.pop();
Note: See TracChangeset for help on using the changeset viewer.