Show
Ignore:
Timestamp:
11/19/08 13:39:16 (17 years ago)
Author:
yumileroy
Message:

[svn] Merge from mangos.
Wed Oct 29 15:06:00 http://github.com/mangos/mangos/commit/034b8a34a9b621443e97d0ac4b667b603ba31ef1
Mon Oct 27 14:36:42 http://github.com/mangos/mangos/commit/fa072d15107b44344af8c9ef686839984e241a1b

Original author: megamage
Date: 2008-10-29 18:06:01-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/ObjectMgr.cpp

    r126 r135  
    67856785    wstrToLower( wname ); 
    67866786 
     6787    // Alternative first GameTele what contains wnameLow as substring in case no GameTele location found 
     6788    const GameTele* alt = NULL; 
    67876789    for(GameTeleMap::const_iterator itr = m_GameTeleMap.begin(); itr != m_GameTeleMap.end(); ++itr) 
     6790    { 
    67886791        if(itr->second.wnameLow == wname) 
    67896792            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; 
    67926798} 
    67936799