Jeremy Hill wrote:      
  sh_int    **skill_level;
  sh_int    **rating;

First off, just single pointers will do. That would create a
multi-dimentional array. Or well, you could. And you don't need that.
Just int *skill_level will do. You -must- remember to malloc this to
MAX_SKILL!


Richard Lindsey has the best idea. I've done it and the social_table
was my basis. But you don't need new_table for the realloc. You can
just do

some_table = realloc(some_table, sizeof(struct some_type) * MAX_SOMETHING); 

And get the same affect. Anyways, I made a post of this on MudMagic,
here. http://www.mudmagic.com/boards/bases/4/8413/8413  More info. Its
fun stuff!

Davion

Reply via email to