Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2009, 11:27:37 PM (15 years ago)
Author:
rgrieder
Message:

Fixed config value not setting problem in Core and Game.

Location:
code/branches/presentation2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/Core.cc

    r6121 r6169  
    146146        // possibility to configure everything below here
    147147        ClassIdentifier<Core>::getIdentifier("Core")->initialiseObject(this, "Core", true);
    148         // Remove us from the object lists again to avoid problems when destroying the Core
    149         this->unregisterObject();
    150148        this->setConfigValues();
    151149
     
    173171    Core::~Core()
    174172    {
     173        // Remove us from the object lists again to avoid problems when destroying them
     174        this->unregisterObject();
    175175    }
    176176
  • code/branches/presentation2/src/libraries/core/Game.cc

    r6161 r6169  
    112112        // Do this after the Core creation!
    113113        ClassIdentifier<Game>::getIdentifier("Game")->initialiseObject(this, "Game", true);
    114         // Remove us from the object lists again to avoid problems when destroying the Game
    115         this->unregisterObject();
    116114        this->setConfigValues();
    117115
     
    137135    Game::~Game()
    138136    {
     137        // Remove us from the object lists again to avoid problems when destroying them
     138        this->unregisterObject();
    139139    }
    140140
Note: See TracChangeset for help on using the changeset viewer.