From 4a05d56c8ad4851376c554359bc321e02ae473ad Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sun, 26 May 2024 13:21:55 +0200 Subject: [PATCH] Fixed a stupd that the IDE allowed me to not see instantly --- lib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib.c b/lib.c index 772c3ef..d673329 100644 --- a/lib.c +++ b/lib.c @@ -1006,12 +1006,12 @@ void ink_gc(struct context* ctx) { /* Start by marking the roots of the routines, Clear the routines if possible */ for(i = 0; i < ctx->routines_top; ++i) { - if(ctx->routine[i].panic == INK_ROUTINE_SUCCESS) { - ctx->free(ctx->routine[i].stack); - ctx->free(ctx->routine[i].function_stack); - ctx->routine[i].panic = INK_ROUTINE_CAN_REUSE; + if(ctx->routines[i].panic == INK_ROUTINE_SUCCESS) { + ctx->free(ctx->routines[i].stack); + ctx->free(ctx->routines[i].function_stack); + ctx->routines[i].panic = INK_ROUTINE_CAN_REUSE; } - if(ctx->routine[i].panic == INK_ROUTINE_CAN_REUSE) { + if(ctx->routines[i].panic == INK_ROUTINE_CAN_REUSE) { continue; } for(j = 0; j < ctx->routines[i].top; ++j) {