git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 955ef591406a4f35c34970fd3e9284430216b7ef
parent 6ddfcc9725603f7a6ab7469d39240b585e7efbac
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 10 Apr 2021 16:12:35 +0300

Merge branch 'bess' into gbs

Diffstat:
MCore/cheats.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/cheats.c b/Core/cheats.c @@ -109,7 +109,7 @@ void GB_remove_cheat(GB_gameboy_t *gb, const GB_cheat_t *cheat) GB_cheat_hash_t **hash = &gb->cheat_hash[hash_addr(cheat->address)]; for (unsigned i = 0; i < (*hash)->size; i++) { if ((*hash)->cheats[i] == cheat) { - (*hash)->cheats[i] = (*hash)->cheats[(*hash)->size--]; + (*hash)->cheats[i] = (*hash)->cheats[--(*hash)->size]; if ((*hash)->size == 0) { free(*hash); *hash = NULL;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.