Changeset 10546 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Jan 31, 2007, 5:44:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r10540 r10546 426 426 void WorldEntity::addMountPoint(int slot, MountPoint* mountPoint) 427 427 { 428 if( this->mountPointMap.find(slot) == this->mountPointMap.end())428 if( this->mountPointMap.find(slot) != this->mountPointMap.end()) 429 429 { 430 430 PRINTF(2)("adding a mount point to a slot, that already is occupied! ignoring - maybe some object did not get connected well (object: %s)\n", this->getClassCName()); … … 442 442 void WorldEntity::mount(int slot, WorldEntity* entity) 443 443 { 444 if( this->mountPointMap.find(slot) == this->mountPointMap.end())444 if( this->mountPointMap.find(slot) != this->mountPointMap.end()) 445 445 { 446 446 PRINTF(0)("you tried to add an entity to a mount point that doesn't exist (slot %i)\n", slot);
Note: See TracChangeset
for help on using the changeset viewer.