* 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-861f7616d084master
parent
f147f95639
commit
0733a68c76
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue