gingerBill 4 years ago
parent
commit
e884f8c165
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common.cpp

+ 1 - 0
src/common.cpp

@@ -523,6 +523,7 @@ gb_global Temp_Allocator temporary_allocator_data = {};
 void temp_allocator_init(Temp_Allocator *s, isize size) {
 	s->backup_allocator = heap_allocator();
 	s->data = cast(u8 *)gb_alloc_align(s->backup_allocator, size, 16);
+	s->len = size;
 	s->curr_offset = 0;
 	s->leaked_allocations.allocator = s->backup_allocator;
 }