Make sure current text buffer is empty #1109
This commit is contained in:
parent
310fd9b147
commit
a77273d8d8
1 changed files with 1 additions and 0 deletions
|
@ -1149,6 +1149,7 @@ const char *TextFormat(const char *text, ...)
|
||||||
static int index = 0;
|
static int index = 0;
|
||||||
|
|
||||||
char *currentBuffer = buffers[index];
|
char *currentBuffer = buffers[index];
|
||||||
|
memset(currentBuffer, 0, MAX_TEXT_BUFFER_LENGTH); // Clear buffer before using
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, text);
|
va_start(args, text);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue