Changeset 581

Show
Ignore:
Timestamp:
09/28/07 09:19:54 (1 year ago)
Author:
takkaria
Message:

Fix previous commit so that the old spell is forgotten about on savefile load.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property bzr:revision-id:v3-trunk0 changed from
      513 me@rephial.org-20070928112818-0w6plp46k8exdip2
      to
      513 me@rephial.org-20070928112818-0w6plp46k8exdip2
      514 me@rephial.org-20070928131758-pxco2ac4w19dsz9n
    • Property bzr:revision-info changed from
      timestamp: 2007-09-28 12:28:18.029999971 +0100
      committer: Andrew Sidwell <me@rephial.org>
      properties:
      branch-nick: 263-radius
      to
      timestamp: 2007-09-28 14:17:58.954999924 +0100
      committer: Andrew Sidwell <me@rephial.org>
      properties:
      branch-nick: 263-radius
  • trunk/src/load.c

    r580 r581  
    11021102 
    11031103                /* Read the spell flags */ 
    1104                 for (i = 0, cnt = 0; i < tmp16u; i++, cnt++) 
    1105                 { 
    1106                         rd_byte(&p_ptr->spell_flags[cnt]); 
    1107                         if (p_ptr->spell_order[cnt] == 7) 
    1108                                 cnt--
     1104                for (i = 0; i < tmp16u; i++) 
     1105                { 
     1106                        rd_byte(&p_ptr->spell_flags[i]); 
     1107                        if (i == 7) 
     1108                                p_ptr->spell_flags[i] = 0
    11091109                } 
    11101110