idlesave()

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 03/25/01


In Crash_idlesave() I found something I couldn't understand..
the code reads -
for (j = 0; j < NUM_WEARS; j++) {
  if (GET_EQ(ch, j)) {
    if (!Crash_save(ch->carrying, fp, j + 1)) {
      fclose(fp);
      return;
    }
    Crash_restore_weight(GET_EQ(ch, j));
    Crash_extract_objs(GET_EQ(ch, j));
  }
}
if (!Crash_save(ch->carrying, fp, 0)) {
  fclose(fp);
  return;
}

Why is it in the for loop that you would Crash_save(ch->carrying)?
Shouldn't it Crash_save(GET_EQ(ch, j))?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST