> > Sorry to have to post this message but this function is driving me nuts.. > > -- > 14 int get_zone_rnum(int vnum) > 15 { > 16 extern int top_of_zone_table; > 17 extern struct zone_data *zone_table; > 18 > 19 char buf[150]; > 20 int i; > 21 > 22 for (i = 0; i <= top_of_zone_table; i++) > 23 if (zone_table[i].number == vnum) > 24 return i; > 25 > 26 sprintf(buf, "get_zone_rnum called w/ invalid vnum (%d)", vnum); > 27 log(buf); > 28 return 0; > 29 } > -- > and these are the errors I get... > > utils.c: In function `get_zone_rnum': > utils.c:23: arithmetic on pointer to an incomplete type > utils.c:23: dereferencing pointer to incomplete type > I could be wrong but isn't the zone_data in stock circle an array, and not a poiinter? it might have to be defined as: extern struct zone_data zone_table[] Then again I could be totally wrong.... I converted all my rooms, obj, mob, and zone prototypes to linked lists long ago, so I'm working off memory here. :) +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST