Update aedit.c (#145)

fixes #144 

Thanks to @gbstott for the bug report
This commit is contained in:
Thomas Arp 2025-01-08 22:57:39 +01:00 committed by GitHub
parent 1ccb6adaee
commit 69888a5d89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -566,10 +566,10 @@ void aedit_parse(struct descriptor_data * d, char *arg) {
aedit_disp_menu(d); aedit_disp_menu(d);
return; return;
} }
if (OLC_ACTION(d)->sort_as) { if (OLC_ACTION(d)->sort_as)
free(OLC_ACTION(d)->sort_as); free(OLC_ACTION(d)->sort_as);
OLC_ACTION(d)->sort_as = strdup(arg); OLC_ACTION(d)->sort_as = strdup(arg);
}
break; break;
case AEDIT_MIN_CHAR_POS: case AEDIT_MIN_CHAR_POS: