Changeset 1404 for trunk

Show
Ignore:
Timestamp:
05/20/09 22:34:14 (16 months ago)
Author:
magnate
Message:

Make calc_blows used passed-in state rather than p_ptr->state (fixes #706 - thanks to Peter Denison)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/player/calcs.c

    r1403 r1404  
    523523 
    524524        /* Get the strength vs weight */ 
    525         str_index = adj_str_blow[p_ptr->state.stat_ind[A_STR]] * 
     525        str_index = adj_str_blow[state->stat_ind[A_STR]] * 
    526526                        cp_ptr->att_multiply / div; 
    527527 
     
    530530 
    531531        /* Index by dexterity */ 
    532         dex_index = MIN(adj_dex_blow[p_ptr->state.stat_ind[A_DEX]], 11); 
     532        dex_index = MIN(adj_dex_blow[state->stat_ind[A_DEX]], 11); 
    533533 
    534534        /* Use the blows table */