Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2009, 2:45:37 PM (16 years ago)
Author:
rgrieder
Message:

Found a way to write orxonox_cast<T*> instead of orxonox_cast<T> so that the syntax resembles dynamic_cast<T*>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/orxonox/objects/pickup/PickupSpawner.cc

    r3223 r3239  
    8686        //  = less delays while running
    8787        BaseObject* newObject = this->itemTemplate_->getBaseclassIdentifier()->fabricate(this);
    88         BaseItem* asItem = orxonox_cast<BaseItem>(newObject);
     88        BaseItem* asItem = orxonox_cast<BaseItem*>(newObject);
    8989        if (asItem)
    9090        {
     
    154154        {
    155155            BaseObject* newObject = this->itemTemplate_->getBaseclassIdentifier()->fabricate(this);
    156             BaseItem* asItem = orxonox_cast<BaseItem>(newObject);
     156            BaseItem* asItem = orxonox_cast<BaseItem*>(newObject);
    157157            if (asItem)
    158158            {
Note: See TracChangeset for help on using the changeset viewer.