Changeset 5097


Ignore:
Timestamp:
Nov 25, 2011 2:41:31 AM (6 months ago)
Author:
Zoey76
Message:

BETA: Preventing NPE in Long Range skills, thanks nonom/UnAfraid for report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unstable/L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Npc.java

    r5093 r5097  
    299299                if (_staticAIData == null || _staticAIData.getLongRangeSkill() == 0) 
    300300                { 
    301                         return null; 
    302                 } 
     301                        return skilldata; 
     302                } 
     303                 
    303304                switch (_staticAIData.getLongRangeSkill()) 
    304305                { 
     
    357358                        return skilldata; 
    358359                } 
     360                 
    359361                switch (_staticAIData.getShortRangeSkill()) 
    360362                { 
Note: See TracChangeset for help on using the changeset viewer.