File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class RaylibJs {
47
47
this . currentMousePosition = { x : 0 , y : 0 } ;
48
48
this . images = [ ] ;
49
49
this . quit = false ;
50
- this . heapedIndex = 0 ;
50
+ this . textFormatBufferIndex = 0 ;
51
51
}
52
52
53
53
constructor ( ) {
@@ -209,7 +209,7 @@ class RaylibJs {
209
209
const heap_base = this . wasm . instance . exports . __heap_base . value ;
210
210
// TODO: Check if the values exceeds the heap end
211
211
// const heap_end = this.wasm.instance.exports.__heap_end.value;
212
- const heap_ptr = heap_base + this . heapedIndex * MAX_TEXT_BUFFER_LENGTH ;
212
+ const heap_ptr = heap_base + this . textFormatBufferIndex * MAX_TEXT_BUFFER_LENGTH ;
213
213
214
214
// Inserting "..." at the end of the string to mark as truncated
215
215
if ( fmt_text_len >= MAX_TEXT_BUFFER_LENGTH ) {
@@ -226,8 +226,8 @@ class RaylibJs {
226
226
227
227
// Mark end with null
228
228
bytes [ fmt_text . length ] = 0 ;
229
- this . heapedIndex += 1 ;
230
- if ( this . heapedIndex >= MAX_TEXTFORMAT_BUFFERS ) this . heapedIndex = 0 ;
229
+ this . textFormatBufferIndex += 1 ;
230
+ if ( this . textFormatBufferIndex >= MAX_TEXTFORMAT_BUFFERS ) this . textFormatBufferIndex = 0 ;
231
231
232
232
return heap_ptr ;
233
233
}
You can’t perform that action at this time.
0 commit comments