Skip to content

Commit

Permalink
Even safer fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Nov 29, 2024
1 parent 8d8e3c0 commit 45d2410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rts/Rendering/Fonts/CFontTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ void CFontTexture::LoadGlyph(std::shared_ptr<FontFace>& f, char32_t ch, unsigned
const auto iter = std::find_if(glyphs.begin(), glyphs.end(), pred);

if (iter != glyphs.end()) {
glyphs[ch] = iter->second;
auto glyphInfo = iter->second;
glyphs[ch] = glyphInfo;
return;
}

Expand Down

0 comments on commit 45d2410

Please sign in to comment.