Permalink
Browse files

Font: skip current character if it isn’t valid.

  • Loading branch information...
1 parent f4d156b commit 17da78a78ee398e0c14a367c6d2003bb72e6a76f @bradallred bradallred committed Nov 30, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 gemrb/core/Font.cpp
View
@@ -606,6 +606,7 @@ size_t Font::GetDoubleByteString(const unsigned char* string, ieWord* &dbString)
nb = 6;
} else {
Log(WARNING, "Font", "Invalid UTF-8 character: %x", currentChr);
+ continue;
}
ieWord ch = currentChr & ((1 << (7 - nb)) - 1);

0 comments on commit 17da78a

Please sign in to comment.