diff options
-rw-r--r-- | unprotbas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unprotbas.c b/unprotbas.c index 3c53492..ae01b50 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -97,7 +97,7 @@ int fixcode(void) { /* fprintf(stderr, "pos %d, line #%d, offset %d\n", pos, lineno, offset); */ if(offset < 6) { if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset $%04x.\n", offset, lineno, pos); - offset += fixline(pos); + offset = fixline(pos); result++; } pos += offset; |