mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-25 18:52:48 +00:00
device_memory_manager: fix ScratchBuffer indexing
This commit is contained in:
parent
8bd10473d6
commit
550cadbee4
|
@ -31,9 +31,8 @@ public:
|
||||||
buffer.resize(0);
|
buffer.resize(0);
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
const auto add_value = [&](u32 value) {
|
const auto add_value = [&](u32 value) {
|
||||||
buffer[index] = value;
|
buffer.resize(index + 1);
|
||||||
index++;
|
buffer[index++] = value;
|
||||||
buffer.resize(index);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
u32 iter_entry = start_entry;
|
u32 iter_entry = start_entry;
|
||||||
|
|
Loading…
Reference in a new issue