mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-10 01:54:20 +01:00
Renumbered UNUSED triggers to UNUSED# to make it easier to unset them when cha
nging trig types. (thanks Parna) Fixed double free in IBT that caused crash on /a or saving without any descrip tion.
This commit is contained in:
parent
66e4b7ec0c
commit
32880daf6b
6 changed files with 1136 additions and 1123 deletions
|
|
@ -243,8 +243,6 @@ static void playing_string_cleanup(struct descriptor_data *d, int action)
|
|||
save_ibt_file(SCMD_IDEA);
|
||||
} else {
|
||||
write_to_output(d, "Idea aborted!\r\n");
|
||||
free(*d->str);
|
||||
free(d->str);
|
||||
}
|
||||
}
|
||||
if (PLR_FLAGGED(d->character, PLR_BUG)) {
|
||||
|
|
@ -253,8 +251,6 @@ static void playing_string_cleanup(struct descriptor_data *d, int action)
|
|||
save_ibt_file(SCMD_BUG);
|
||||
} else {
|
||||
write_to_output(d, "Bug aborted!\r\n");
|
||||
free(*d->str);
|
||||
free(d->str);
|
||||
}
|
||||
}
|
||||
if (PLR_FLAGGED(d->character, PLR_TYPO)) {
|
||||
|
|
@ -263,8 +259,6 @@ static void playing_string_cleanup(struct descriptor_data *d, int action)
|
|||
save_ibt_file(SCMD_TYPO);
|
||||
} else {
|
||||
write_to_output(d, "Typo aborted!\r\n");
|
||||
free(*d->str);
|
||||
free(d->str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue