Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 17, 2012, 6:24:06 PM (12 years ago)
Author:
landauf
Message:

small cleanup. calling addTemplate() only once instead of twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/modules/pickup/PickupSpawner.cc

    r9279 r9302  
    9696        {
    9797            PickupRepresentation* representation = PickupManager::getInstance().getRepresentation(this->pickup_->getPickupIdentifier());
    98             this->attach(representation->getSpawnerRepresentation(this));
     98            this->attach(representation->createSpawnerRepresentation(this));
    9999            this->setActive(true);
    100100        }
     
    150150        {
    151151            PickupRepresentation* representation = PickupManager::getInstance().getRepresentation(this->pickup_->getPickupIdentifier());
    152             this->attach(representation->getSpawnerRepresentation(this));
     152            this->attach(representation->createSpawnerRepresentation(this));
    153153            this->setActive(true);
    154154        }
Note: See TracChangeset for help on using the changeset viewer.