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:
Lee Salzman
2010-05-13 20:22:19 +00:00
parent 582c9a0f51
commit fb65982428
4 changed files with 7979 additions and 27 deletions
+2 -4
View File
@@ -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;