On Fri, 22 Feb 2002, Michael Gerner Andreasen wrote:

>I still have some problems around this issue, anyone else than Dwight
>Campbell got some bright ideas?
>
>Currently looked at db2.c as i was told to do, but in the stuff about
>socials i se not much different from stock, well there is a max_socials++ at
>the bottom and some if define first_boot stuff but other than than i cant
>seem to the the reason why it should not work.

1) Look carefully at the differences.
2) Learn to love gdb.
3) assign maxSocial to be equal to social_count at both exit points to the
   function load_social.  Quick check this seemed to fix it for me.

in db2.c, function load_social()

         temp = fread_word(fp);
         if (!strcmp(temp,"#0"))
+        {
+            maxSocial = social_count;
             return;  /* done */
+        }
 #if defined(social_debug)


Further down

        social_table[social_count] = social;
        social_count++;
-       maxSocial++;
     }
+    maxSocial = social_count;
     return;
 }

| dwight a campbell - [EMAIL PROTECTED] - http://rats.darktech.org - KD7KJG |
| yet another linux guru in training & reality avoidance therapist at large |
| tired of voting for the lesser evil?  vote kthulhu & yog-sothoth in 2004! |



Reply via email to