Преглед на файлове

[Image Font Importer] Fix reading advance after hex/dec range.

bruvzg преди 1 година
родител
ревизия
26df66cbad
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      editor/import/resource_importer_imagefont.cpp

+ 2 - 0
editor/import/resource_importer_imagefont.cpp

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