Fixed trainerproc skipping numbers when writing species IDs (#4366)

Credit for MGriffin for the fix
This commit is contained in:
Eduardo Quezada 2024-04-07 10:10:29 -04:00 committed by GitHub
parent 297def722a
commit d8072795db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1528,7 +1528,7 @@ static void fprint_species(FILE *f, const char *prefix, struct String s)
for (int i = 0; i < s.string_n; i++)
{
unsigned char c = s.string[i];
if ('A' <= c && c <= 'Z')
if (('A' <= c && c <= 'Z') || ('0' <= c && c <= '9'))
{
if (underscore)
fputc('_', f);