Changeset 4324 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- May 27, 2005, 2:13:19 AM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/game_loader.cc
r4262 r4324 82 82 delete campaignName; 83 83 } 84 World* world0 = new World(DEBUG_WORLD_0); 85 world0->setNextStoryID(WORLD_ID_GAMEEND); 86 this->currentCampaign->addEntity(world0, WORLD_ID_2); 84 87 } 85 88 -
orxonox/trunk/src/util/object_manager.cc
r4322 r4324 19 19 #include "list.h" 20 20 21 #include "projectile.h"22 21 23 22 using namespace std; … … 72 71 this->managedObjectList[index]->add(object); 73 72 else 74 PRINTF(0)(" Error: unable to add object to the list nr. %i: no list initialized - ignoring\n", index);73 PRINTF(0)(" Critical: unable to add object to the list nr. %i: no list initialized - ignoring\n", index); 75 74 } 76 75 … … 82 81 BaseObject* obj = this->managedObjectList[index]->firstElement(); 83 82 this->managedObjectList[index]->remove(obj); 83 if( unlikely(obj == NULL)) 84 { 85 PRINTF(0)("Critical: there was no object anymore in the dead list! This could result in Segfaults\n"); 86 } 84 87 return obj; 85 88 } 86 89 else 87 PRINTF(0)(" Error: unable to get object from the list nr. %i: no elements initialized - ignoring\n", index); 90 PRINTF(0)(" Critical: unable to get object from the list nr. %i: no elements initialized - ignoring\n", index); 91 return NULL; 88 92 } 89 93
Note: See TracChangeset
for help on using the changeset viewer.