Changeset 8864 for code/trunk/src/orxonox/pickup
- Timestamp:
- Aug 24, 2011, 2:57:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/pickup/PickupIdentifier.cc
r8858 r8864 75 75 assert(this->pickup_); 76 76 77 // If the classIdentifiers are not the same (meaning the PickupIdentifiers identify different classes), the obviously the two Pickupables identified by the PickupIdentifiers cannot be the same. An ordering is established through the alphabetical ordering of the respective classnames.77 // If the classIdentifiers are not the same (meaning the PickupIdentifiers identify different classes), then obviously the two Pickupables identified by the PickupIdentifiers cannot be the same. An ordering is established through the alphabetical ordering of the respective classnames. 78 78 if(!identifier->pickup_->getIdentifier()->isExactlyA(this->pickup_->getIdentifier())) 79 79 return this->pickup_->getIdentifier()->getName().compare(identifier->pickup_->getIdentifier()->getName()); … … 83 83 if(!(this->parameters_.size() == identifier->parameters_.size())) 84 84 { 85 orxout(internal_error, context::pickups) << " Something went wrong in PickupIdentifier!" << endl;85 orxout(internal_error, context::pickups) << "Two PickupIdentifiers of the same Class have a different number of parameters. " << this->parameters_.size() << " vs. " << identifier->parameters_.size() << ". This indicates a bug in " << this->pickup_->getIdentifier()->getName() << "." << endl; 86 86 return this->parameters_.size()-identifier->parameters_.size(); 87 87 } … … 93 93 if(identifier->parameters_.find(it->first) == identifier->parameters_.end()) 94 94 { 95 orxout(internal_error, context::pickups) << "Something went wrong in PickupIdentifier!" << endl;95 orxout(internal_error, context::pickups) << this->pickup_->getIdentifier()->getName() << " Something went wrong in PickupIdentifier!" << endl; 96 96 return -1; 97 97 }
Note: See TracChangeset
for help on using the changeset viewer.