Revert "(cheats.c) Fix buffer reallocation"

This reverts commit 947baa6b6032e0c9735bde35bb9356bc6422f7fa.
This commit is contained in:
Higor Eurípedes 2014-12-15 16:53:23 -03:00
parent db304a7e2f
commit 5a0498b859

View File

@ -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;