Changeset 1432 for trunk

Show
Ignore:
Timestamp:
06/08/09 10:10:34 (15 months ago)
Author:
ajps
Message:

Fix use of unitialiased spell pointer (bug from r1431)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/cmd5.c

    r1431 r1432  
    718718{ 
    719719        int chance; 
    720         const magic_type *s_ptr; 
     720 
     721        /* Get the spell */ 
     722        const magic_type *s_ptr = &mp_ptr->info[spell];  
    721723 
    722724        /* Spell failure chance */ 
     
    738740                /* A spell was cast */ 
    739741                sound(MSG_SPELL); 
     742 
    740743                if (!(p_ptr->spell_flags[spell] & PY_SPELL_WORKED)) 
    741744                {