fixed a bunch of strange bugs in objsave.c - how did we ever get that to compile? - and altered build_player_index() to conform to gcc 4.1 standards. This mainly consisted of removing a cast which was not needed. Todo: Fix up objsave.c - it's a mess atm.

This commit is contained in:
Rumble
2006-12-28 23:36:17 +00:00
parent 1be1fc39d7
commit f33141db5b
2 changed files with 9 additions and 21 deletions

View File

@@ -96,8 +96,8 @@ void build_player_index(void)
CREATE(player_table, struct player_index_element, rec_count);
for (i = 0; i < rec_count; i++) {
get_line(plr_index, line);
sscanf(line, "%ld %s %d %s %d", &player_table[i].id, arg2,
&player_table[i].level, bits, (int *)&player_table[i].last);
sscanf(line, "%ld %s %d %s %ld", &player_table[i].id, arg2,
&player_table[i].level, bits, &player_table[i].last);
CREATE(player_table[i].name, char, strlen(arg2) + 1);
strcpy(player_table[i].name, arg2);
player_table[i].flags = asciiflag_conv(bits);