Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:21:26 PM (15 years ago)
Author:
landauf
Message:

replaced delete with destroy() in modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/weapons/projectiles/Projectile.cc

    r5738 r5800  
    8484
    8585        if (this->bDestroy_)
    86             delete this;
     86            this->destroy(); // TODO: use a scheduler instead of deleting the object right here in tick()
    8787    }
    8888
     
    9090    {
    9191        if (GameMode::isMaster())
    92             delete this;
     92            this->destroy();
    9393    }
    9494
Note: See TracChangeset for help on using the changeset viewer.