Changeset 10919 for code/branches/cpp11_v2/src/modules/invader/Invader.cc
- Timestamp:
- Dec 5, 2015, 10:47:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/invader/Invader.cc
r10768 r10919 98 98 if (player == nullptr) 99 99 { 100 for ( ObjectList<InvaderShip>::iterator it = ObjectList<InvaderShip>::begin(); it != ObjectList<InvaderShip>::end(); ++it)101 player = *it;100 for (InvaderShip* ship : ObjectList<InvaderShip>()) 101 player = ship; 102 102 } 103 103 return player;
Note: See TracChangeset
for help on using the changeset viewer.