diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index 1da64660d..e8633c537 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -122,7 +122,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents GBAThreadReset(context); break; case SDLK_t: - if (context->gba->rr) { + if (context->stateDir) { GBAThreadReset(context); GBAThreadInterrupt(context); GBARRContextCreate(context->gba); @@ -133,7 +133,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents } break; case SDLK_y: - if (context->gba->rr) { + if (context->stateDir) { GBAThreadReset(context); GBAThreadInterrupt(context); GBARRContextCreate(context->gba);