We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42146b2 commit faa6854Copy full SHA for faa6854
raylib.js
@@ -226,8 +226,9 @@ class RaylibJs {
226
227
// Mark end with null
228
bytes[fmt_text.length] = 0;
229
- this.textFormatBufferIndex += 1;
230
- if (this.textFormatBufferIndex >= MAX_TEXTFORMAT_BUFFERS) this.textFormatBufferIndex = 0;
+
+ // Move to next buffer for next function call
231
+ this.textFormatBufferIndex = (this.textFormatBufferIndex + 1) % MAX_TEXTFORMAT_BUFFERS;
232
233
return heap_ptr;
234
}
0 commit comments