Re: Overlapping Memory

From: George Greer (
Date: 05/28/99

On Fri, 28 May 1999, Phil Durand wrote:

>Ok, I am a little confused... I have made some skills, now I have all the
>skill slots filled in, up to 280. I've got this set like this
>Spells 0 - 130
>Skills 131 - 280
>Object Skills/Spells 281-299

You can only add up to 200.

>I changed the byte skills[MAX_SKILLS+1]; to unsigned short
>skills[MAX_SKILLS+1]; Now, this didn't help at all, everything still gets

Now the structure takes twice as much space but you have the same number of

>Either way, byte, or unsigned short (word) it still gets overwritten.. Does
>anyone have any hints on why this is happening, and how I can fix it?

Change MAX_SKILLS (and the stuff above it, like TOP_SPELL_DEFINE and the
identify spell, etc.) and wipe your pfile.

George Greer

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST