Changeset 3366 for code/branches/resource/src/core/Game.cc
- Timestamp:
- Jul 29, 2009, 10:27:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/Game.cc
r3363 r3366 62 62 63 63 std::map<std::string, GameStateInfo> Game::gameStateDeclarations_s; 64 Game* Game::singleton Ref_s = 0;64 Game* Game::singletonPtr_s = 0; 65 65 66 66 … … 114 114 Game::Game(const std::string& cmdLine) 115 115 { 116 if (singletonRef_s != 0)117 {118 COUT(0) << "Error: The Game singleton cannot be recreated! Shutting down." << std::endl;119 abort();120 }121 singletonRef_s = this;122 123 116 this->bAbort_ = false; 124 117 bChangingState_ = false; … … 163 156 Game::~Game() 164 157 { 165 // Don't assign singletonRef_s with NULL! Recreation is not supported166 158 } 167 159
Note: See TracChangeset
for help on using the changeset viewer.