Changeset 4311 in orxonox.OLD for orxonox/trunk/src/util/object_manager.cc
- Timestamp:
- May 26, 2005, 11:03:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/object_manager.cc
r4289 r4311 19 19 #include "list.h" 20 20 21 #include "projectile.h" 21 22 22 23 using namespace std; … … 62 63 63 64 64 void ObjectManager::cache(classList index, int number, const BaseObject ©Object)65 void ObjectManager::cache(classList index, int number, Projectile* copyObject) 65 66 { 66 67 //this->managedObjectList[index] = new BaseObject[number]; … … 68 69 for(int i = 0; i < number; ++i) 69 70 { 70 this->managedObjectList[index]->add(new BaseObject(copyObject));71 this->managedObjectList[index]->add(new Projectile(*copyObject)); 71 72 } 72 73 }
Note: See TracChangeset
for help on using the changeset viewer.