Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 28, 2009, 9:10:04 PM (15 years ago)
Author:
landauf
Message:

(hopefully) a small fix in Gametype (not sure if this works with the network though, because the creator of a new object is deleted in the next line. but I think we fixed this problem, didn't we?)

This bug caused a crash if the creator (usually a SpawnPoint) of a Pawn was already deleted (which is the case in our UnderAttack level where the SpawnPoints are attached to the Destroyer - with the destruction of the Destroyer, the SpawnPoints were also removed.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/gametypes/Gametype.cc

    r5806 r5827  
    138138                ControllableEntity* oldentity = it->first->getControllableEntity();
    139139
    140                 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity->getCreator());
     140                ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity);
    141141                if (oldentity->getCamera())
    142142                {
Note: See TracChangeset for help on using the changeset viewer.