Fix character creation state issue

This commit is contained in:
kinther 2025-12-26 08:03:54 -08:00
parent e0bfb2bc64
commit c3db46da13

View file

@ -230,7 +230,10 @@ void string_add(struct descriptor_data *d, char *str)
for (i = 0; cleanup_modes[i].func; i++)
if (STATE(d) == cleanup_modes[i].mode)
(*cleanup_modes[i].func)(d, action);
{
(*cleanup_modes[i].func)(d, action);
break;
}
/* Common post cleanup code. */
chain_write = (d->str && d->str != orig_str);