mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-18 17:41:45 +01:00
Allocated Lists merged into one functions for extra expandability
This commit is contained in:
@@ -1354,8 +1354,7 @@ void nanny(struct descriptor_data *d, char *arg)
|
||||
clear_char(d->character);
|
||||
CREATE(d->character->player_specials, struct player_special_data, 1);
|
||||
|
||||
/* Allocate mobile event list */
|
||||
d->character->events = create_list();
|
||||
new_mobile_data(d->character);
|
||||
|
||||
GET_HOST(d->character) = strdup(d->host);
|
||||
d->character->desc = d;
|
||||
@@ -1392,8 +1391,7 @@ void nanny(struct descriptor_data *d, char *arg)
|
||||
clear_char(d->character);
|
||||
CREATE(d->character->player_specials, struct player_special_data, 1);
|
||||
|
||||
/* Allocate mobile event list */
|
||||
d->character->events = create_list();
|
||||
new_mobile_data(d->character);
|
||||
|
||||
if (GET_HOST(d->character))
|
||||
free(GET_HOST(d->character));
|
||||
|
||||
Reference in New Issue
Block a user