mirror of
https://github.com/godotengine/godot
synced 2024-11-02 14:03:02 +00:00
[Image Font Importer] Fix reading advance after hex/dec range.
This commit is contained in:
parent
292e50e17e
commit
26df66cbad
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue