Changeset 135 for trunk/src/game/ObjectMgr.cpp
- Timestamp:
- 11/19/08 13:39:16 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ObjectMgr.cpp
r126 r135 6785 6785 wstrToLower( wname ); 6786 6786 6787 // Alternative first GameTele what contains wnameLow as substring in case no GameTele location found 6788 const GameTele* alt = NULL; 6787 6789 for(GameTeleMap::const_iterator itr = m_GameTeleMap.begin(); itr != m_GameTeleMap.end(); ++itr) 6790 { 6788 6791 if(itr->second.wnameLow == wname) 6789 6792 return &itr->second; 6790 6791 return NULL; 6793 else if (alt == NULL && itr->second.wnameLow.find(wname) != std::wstring::npos) 6794 alt = &itr->second; 6795 } 6796 6797 return alt; 6792 6798 } 6793 6799