Changeset 11893 for code/branches/RacingBots_FS18/src
- Timestamp:
- Apr 19, 2018, 4:11:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
r11720 r11893 20 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 21 * 22 * Created on: Oct 8, 2012 22 * Created on: Oct 8, 2012findCheck 23 23 * Author: purgham 24 24 */ … … 127 127 continue; 128 128 } 129 if (findCheckpoint(checkpointIndex) == nullptr) 129 if (findCheckpoint(checkpointIndex) == nullptr){ 130 orxout()<<"nullpointer @ SpaceraceController line 130"<< endl; 130 131 orxout(internal_warning) << "Problematic Point: " << checkpointIndex << endl; 132 } 131 133 else 132 134 numberOfWays += rekSimulationCheckpointsReached(findCheckpoint(checkpointIndex), zaehler); … … 223 225 RaceCheckPoint* SpaceRaceController::findCheckpoint(int index) const 224 226 { 225 for (RaceCheckPoint* checkpoint : this->checkpoints_) 227 for (RaceCheckPoint* checkpoint : this->checkpoints_){ 226 228 if (checkpoint->getCheckpointIndex() == index) 227 229 return checkpoint; 230 } 231 228 232 return nullptr; 229 233 } … … 328 332 329 333 this->boostControl(); 334 if (nextRaceCheckpoint_ == nullptr) orxout() << "nextRaceCheckpoint_ equals to nullpointer look @line 334 SpaceRaceController.cc" << endl; 330 335 this->moveToPosition(nextRaceCheckpoint_->getPosition()); 331 336 this->boostControl();
Note: See TracChangeset
for help on using the changeset viewer.