From 24bfc9d1ea766b68834fe0d2410eb03d08ea6d46 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 6 Jan 2003 04:24:28 +0000 Subject: [PATCH] add an assert --- stepmania/src/Font.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index f3f5ed1032..364276a2e1 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -21,7 +21,7 @@ #include "FontManager.h" #include "GameState.h" -const longchar Font::DEFAULT_GLYPH = 0xFFFF; +const longchar Font::DEFAULT_GLYPH = 0xFFFFFF; FontPage::FontPage() { @@ -223,6 +223,8 @@ void Font::MergeFont(Font *f) const glyph &Font::GetGlyph( longchar c ) const { + ASSERT(c >= 0 && c <= 0xFFFFFF); + /* See if there's a game-specific version of this character. */ int gc = FontManager::MakeGameGlyph(c, GAMESTATE->m_CurGame); map::const_iterator it = m_iCharToGlyph.find(gc);