X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/562b985a2b03cbf76772cbacff3b0d2cf1d02c29..f8295b32a98df79caee16a25a1dcf3a7a678e409:/src/lbx.c diff --git a/src/lbx.c b/src/lbx.c index 17bf976..5dc14fd 100644 --- a/src/lbx.c +++ b/src/lbx.c @@ -1,7 +1,7 @@ /* * 2ooM: The Master of Orion II Reverse Engineering Project * Library for working with LBX archive files. - * Copyright (C) 2006-2008 Nick Bowler + * Copyright (C) 2006-2010 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -293,6 +293,8 @@ int lbx_file_seek(struct lbx_file_state *f, long offset, int whence) f->lbx->last_file = NULL; if (fops->seek(f->lbx->f, f->base + pos, SEEK_SET) != 0) return -1; + + f->offset = pos; f->lbx->last_file = f; f->eof = 0;