1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-05 17:57:17 -05:00

Merge pull request #1069 from gucio321/hotfix2

hothotfix: fixed argument order in call to d2fontglyph.Create
This commit is contained in:
gravestench 2021-02-18 23:18:37 -08:00 committed by GitHub
commit 30fb02bc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ func (f *Font) initGlyphs(sr *d2datautils.StreamReader) error {
// 1, 0, 0, character code repeated, and further 0.
sr.SkipBytes(unknown3BytesCount)
glyph := d2fontglyph.Create(int(width), int(height), int(frame))
glyph := d2fontglyph.Create(int(frame), int(width), int(height))
glyphs[rune(code)] = glyph
}