diff -r 05d2979e0738 -r e27e6519c856 core/vm/sp_vm_basecontext.cpp --- a/core/vm/sp_vm_basecontext.cpp Mon Jan 01 03:40:17 2007 +0000 +++ b/core/vm/sp_vm_basecontext.cpp Mon Jan 01 03:40:29 2007 +0000 @@ -767,7 +767,8 @@ return SP_ERROR_NOT_FOUND; } - *line = ctx->lines[low].line; + /* Since the CIP occurs BEFORE the line, we have to add one */ + *line = ctx->lines[low].line + 1; return SP_ERROR_NONE; }