Changeset 10579
- Timestamp:
- Sep 9, 2015, 4:14:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/Level.cc
r10578 r10579 123 123 Gametype* rootgametype = orxonox_cast<Gametype*>(identifier->fabricate(this)); 124 124 125 rootgametype->setLevel(StrongPtr<Level>(NULL)); // avoid circular references 126 this->setGametype(StrongPtr<Gametype>(rootgametype)); 125 // store a weak-pointer to the gametype to avoid a circular dependency between this level and the gametype (which has a strong-reference on this level) 126 this->setGametype(WeakPtr<Gametype>(rootgametype)); 127 127 128 rootgametype->init(); // call init() AFTER the gametype was set 128 129
Note: See TracChangeset
for help on using the changeset viewer.