* Fix an infinite loop in the text drawing code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2313 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-08-01 19:21:04 +00:00
parent f147f95639
commit 0733a68c76
1 changed files with 1 additions and 3 deletions

View File

@ -498,7 +498,7 @@ void pie_DrawText(const char *string, UDWORD x, UDWORD y)
/* Colour selection */
pie_BeginTextRender(Font->FontColourIndex);
while (*string != 0)
for (; *string != 0; ++string)
{
unsigned int Index = (unsigned char)*string;
UWORD ImageID;
@ -538,8 +538,6 @@ void pie_DrawText(const char *string, UDWORD x, UDWORD y)
// Advance the drawing position
x += iV_GetImageWidth(Font->FontFile, ImageID) + 1;
++string;
}
}