diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/device_memory_manager.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc index 8ce122872..eab8a2731 100644 --- a/src/core/device_memory_manager.inc +++ b/src/core/device_memory_manager.inc @@ -31,9 +31,8 @@ public: buffer.resize(0); size_t index = 0; const auto add_value = [&](u32 value) { - buffer[index] = value; - index++; - buffer.resize(index); + buffer.resize(index + 1); + buffer[index++] = value; }; u32 iter_entry = start_entry; |