diff --git a/src/rtext.c b/src/rtext.c index 1f9ce1b65..dce838c29 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1340,7 +1340,7 @@ int TextToInteger(const char *text) text++; } - for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); ++i) value = value*10 + (int)(text[i] - '0'); + for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10 + (int)(text[i] - '0'); return value*sign; }