Skip to content

Commit 2fb296a

Browse files
committed
Merge pull request #93074 from bruvzg/bmp_imp_adv
[Image Font Importer] Fix reading advance after hex/dec range.
2 parents 5e2bdd7 + 26df66c commit 2fb296a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/import/resource_importer_imagefont.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Error ResourceImporterImageFont::import(const String &p_source_file, const Strin
229229
} else {
230230
end = token.hex_to_int();
231231
step = STEP_ADVANCE_BEGIN;
232+
c--;
232233
}
233234
}
234235
} break;
@@ -244,6 +245,7 @@ Error ResourceImporterImageFont::import(const String &p_source_file, const Strin
244245
} else {
245246
end = token.to_int();
246247
step = STEP_ADVANCE_BEGIN;
248+
c--;
247249
}
248250
}
249251
} break;

0 commit comments

Comments
 (0)