Changeset 234 for trunk

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

[svn] * minor cleanup in Level3.cpp

Original author: KingPin?
Date: 2008-11-15 07:14:03-06:00

Files:
1 modified

Legend:

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

    r233 r234  
    989989    Player* target = getSelectedPlayer(); 
    990990    if(!target) 
    991     { 
    992         SendSysMessage(LANG_PLAYER_NOT_FOUND); 
    993         SetSentErrorMessage(true); 
    994         return false; 
    995     } 
     991                *target = m_session->GetPlayer(); 
    996992 
    997993    if (!*args) 
     
    17681764        // search highest talent rank 
    17691765        uint32 spellid = 0; 
    1770         int rank = 4; 
    1771         for(; rank >= 0; --rank) 
     1766        for(int rank = 4; rank >= 0; --rank) 
    17721767        { 
    17731768            if(talentInfo->RankID[rank]!=0)