Changeset 172 for trunk

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

[svn] Add some assert for better debug.

Original author: megamage
Date: 2008-11-05 16:37:52-06:00

Files:
1 modified

Legend:

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

    r161 r172  
    426426void Unit::GetRandomContactPoint( const Unit* obj, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const 
    427427{ 
     428    assert(GetCombatReach() > 0.1); 
    428429        uint32 attacker_number = getAttackers().size(); 
    429430    if(attacker_number > 0) --attacker_number; 
     
    984985void Unit::CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, Item *castItem, Aura* triggredByAura, uint64 originalCaster) 
    985986{ 
     987    assert(Victim); 
    986988    if(!spellInfo) 
    987989    {