infinite loop workaround
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4848 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -565,10 +565,8 @@ void draw_text(const char *str, int left, int top, int r, int g, int b, int a, i
|
||||
{
|
||||
std::string::iterator test = iter;
|
||||
utf8::advance(test, 2, end);
|
||||
if(test != end)
|
||||
{
|
||||
utf8::next(iter, end);
|
||||
}
|
||||
if(test == end) break;
|
||||
utf8::next(iter, end);
|
||||
continue;
|
||||
}
|
||||
if(utf8::distance(iter, next) > 16) break;
|
||||
|
||||
Reference in New Issue
Block a user