|
@ -1206,7 +1206,7 @@ void ink_clean_routines(struct context* ctx) { |
|
|
null.value = 0; |
|
|
null.value = 0; |
|
|
null.type = INK_INTEGER; |
|
|
null.type = INK_INTEGER; |
|
|
for(i = 0; i < ctx->routines_top; ++i) { |
|
|
for(i = 0; i < ctx->routines_top; ++i) { |
|
|
if(ctx->routines[i].panic == INK_ROUTINE_CAN_REUSE) { |
|
|
|
|
|
|
|
|
if(ctx->routines[i].panic == INK_ROUTINE_CAN_REUSE || ctx->routines[i].panic == INK_ROUTINE_SUCCESS) { |
|
|
for (j = 0; j < ctx->routines[i].top; ++j) { |
|
|
for (j = 0; j < ctx->routines[i].top; ++j) { |
|
|
ctx->routines[i].stack[j] = null; |
|
|
ctx->routines[i].stack[j] = null; |
|
|
} |
|
|
} |
|
|