Changeset 851

Show
Ignore:
Timestamp:
04/28/08 22:19:19 (4 months ago)
Author:
takkaria
Message:

Fix an inverted logic check that was preventing character dump overwrites.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/files.c

    r815 r851  
    11301130 
    11311131/* 
    1132  * 'Database' of resistances and abilities to display 
     1132 * List of resistances and abilities to display 
    11331133 */ 
    11341134#define RES_ROWS 8 
    1135 struct player_flag_record { 
     1135struct player_flag_record 
     1136
    11361137        const char name[7];             /* Name of resistance/ability */ 
    11371138        byte set;                               /* Which field this resistance is in { 1 2 3 } */ 
     
    11391140        u32b im_flag;                   /* corresponding immunity bit, if any. */ 
    11401141}; 
     1142 
    11411143static const struct player_flag_record player_flag_table[RES_ROWS*4] = 
    11421144{ 
     
    17841786 
    17851787                /* Ask */ 
    1786                 if (get_check(out_val)) 
     1788                if (!get_check(out_val)) 
    17871789                        return -1; 
    17881790        }