Changeset 10765 for code/branches/cpp11_v2/src/modules/objects/Script.cc
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/objects/Script.cc
r10624 r10765 140 140 141 141 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); 142 PlayerInfo* player = NULL;142 PlayerInfo* player = nullptr; 143 143 144 144 // If the trigger is a PlayerTrigger. 145 if(pTrigger != NULL)145 if(pTrigger != nullptr) 146 146 { 147 147 if(!pTrigger->isForPlayer()) // The PlayerTrigger is not exclusively for Pawns which means we cannot extract one. … … 153 153 return false; 154 154 155 if(player == NULL) //TODO: Will this ever happen? If not, change in NotificationDispatcher as well.155 if(player == nullptr) //TODO: Will this ever happen? If not, change in NotificationDispatcher as well. 156 156 { 157 157 orxout(internal_warning) << "The Script was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl;
Note: See TracChangeset
for help on using the changeset viewer.