Changeset 1646 for code/branches/gui/src/core/Loader.cc
- Timestamp:
- Jul 24, 2008, 10:40:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Loader.cc
r1625 r1646 64 64 void Loader::add(const Level* level, const ClassTreeMask& mask) 65 65 { 66 if (!level) 67 return; 66 68 Loader::levels_s.insert(Loader::levels_s.end(), std::pair<const Level*, ClassTreeMask>(level, mask)); 67 69 } … … 69 71 void Loader::remove(const Level* level) 70 72 { 73 if (!level) 74 return; 71 75 for (std::vector<std::pair<const Level*, ClassTreeMask> >::iterator it = Loader::levels_s.begin(); it != Loader::levels_s.end(); ++it) 72 76 { … … 108 112 bool Loader::load(const Level* level, const ClassTreeMask& mask) 109 113 { 114 if (!level) 115 return false; 116 110 117 Loader::currentMask_s = level->getMask() * mask; 111 118 … … 165 172 void Loader::unload(const Level* level, const ClassTreeMask& mask) 166 173 { 174 if (!level) 175 return; 167 176 for (Iterator<BaseObject> it = ObjectList<BaseObject>::begin(); it; ) 168 177 {
Note: See TracChangeset
for help on using the changeset viewer.