void
add_player_alias(dbref player, const char *alias)
{
- long tmp;
char tbuf1[BUFFER_LEN], *s, *sp;
if (!hft_initialized)
init_hft();
while (sp && *sp && *sp == ' ')
sp++;
if (sp && *sp) {
- tmp = player;
- hashadd(strupper(sp), (void *) tmp, &htab_player_list);
+ dbref *p;
+ p = slab_malloc(player_dbref_slab, NULL);
+ if (!p)
+ mush_panic(T("Unable to allocate memory in plyrlist!"));
+ *p = player;
+ hashadd(strupper(sp), p, &htab_player_list);
}
}
}