Merge pull request #93074 from bruvzg/bmp_imp_adv

[Image Font Importer] Fix reading advance after hex/dec range.
This commit is contained in:
Rémi Verschelde 2024-06-12 11:01:43 +02:00
commit 2fb296a5cd
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -229,6 +229,7 @@ Error ResourceImporterImageFont::import(const String &p_source_file, const Strin
} else { } else {
end = token.hex_to_int(); end = token.hex_to_int();
step = STEP_ADVANCE_BEGIN; step = STEP_ADVANCE_BEGIN;
c--;
} }
} }
} break; } break;
@ -244,6 +245,7 @@ Error ResourceImporterImageFont::import(const String &p_source_file, const Strin
} else { } else {
end = token.to_int(); end = token.to_int();
step = STEP_ADVANCE_BEGIN; step = STEP_ADVANCE_BEGIN;
c--;
} }
} }
} break; } break;