mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Revert "(cheats.c) Fix buffer reallocation"
This reverts commit 947baa6b60
.
This commit is contained in:
parent
db304a7e2f
commit
5a0498b859
1 changed files with 2 additions and 4 deletions
6
cheats.c
6
cheats.c
|
@ -262,11 +262,9 @@ bool cheat_manager_realloc(cheat_manager_t *handle, unsigned new_size)
|
|||
}
|
||||
|
||||
handle->buf_size = new_size;
|
||||
handle->size = new_size;
|
||||
|
||||
if (handle->size > handle->buf_size)
|
||||
handle->size = handle->buf_size;
|
||||
|
||||
for (i = handle->size; i < handle->buf_size; i++)
|
||||
for (i = 0; i < handle->size; i++)
|
||||
{
|
||||
handle->cheats[i].desc = NULL;
|
||||
handle->cheats[i].code = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue