mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-23 20:11:44 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user