Fix: Local declaration of 'num_lines' hides declaration of the same name in outer scope.

This commit is contained in:
Echelon9 committed 2010-11-20 18:45:34 +00:00
1 parent 8ba4f6c3c6
commit 8bc8deffd6
1 file changed
+1 -1
+1 -1
View File
@@ -10014,7 +10014,7 @@ ADE_FUNC(drawString, l_Graphics, "string Message, [number X1, number Y1, number
int *linelengths = new int[MAX_TEXT_LINES];
char **linestarts = new char*[MAX_TEXT_LINES];
int num_lines = split_str(s, x2-x, linelengths, linestarts, MAX_TEXT_LINES);
num_lines = split_str(s, x2-x, linelengths, linestarts, MAX_TEXT_LINES);
//Make sure we don't go over size
int line_ht = gr_get_font_height();