diff options
author | aap <aap@papnet.eu> | 2020-04-15 14:05:24 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-15 14:05:40 +0200 |
commit | 90be379bede299aa53bca5027ecc19c356e50f86 (patch) | |
tree | 40a5d2e19da49d0007faf39e4762d96d02c6cba2 /src/rw/ClumpRead.cpp | |
parent | Merge pull request #435 from GTAmodding/appveyor (diff) | |
download | re3-90be379bede299aa53bca5027ecc19c356e50f86.tar re3-90be379bede299aa53bca5027ecc19c356e50f86.tar.gz re3-90be379bede299aa53bca5027ecc19c356e50f86.tar.bz2 re3-90be379bede299aa53bca5027ecc19c356e50f86.tar.lz re3-90be379bede299aa53bca5027ecc19c356e50f86.tar.xz re3-90be379bede299aa53bca5027ecc19c356e50f86.tar.zst re3-90be379bede299aa53bca5027ecc19c356e50f86.zip |
Diffstat (limited to '')
-rw-r--r-- | src/rw/ClumpRead.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rw/ClumpRead.cpp b/src/rw/ClumpRead.cpp index c9f027e7..0bf62f32 100644 --- a/src/rw/ClumpRead.cpp +++ b/src/rw/ClumpRead.cpp @@ -153,7 +153,7 @@ RpClumpGtaStreamRead1(RwStream *stream) if(!RwStreamFindChunk(stream, rwID_FRAMELIST, nil, &version)) return false; - if(_rwFrameListStreamRead(stream, &gFrameList) == nil) + if(rwFrameListStreamRead(stream, &gFrameList) == nil) return false; if(!RwStreamFindChunk(stream, rwID_GEOMETRYLIST, nil, &version)){ @@ -164,7 +164,7 @@ RpClumpGtaStreamRead1(RwStream *stream) rwFrameListDeinitialize(&gFrameList); return false; } - streamPosition = stream->Type.memory.position; + streamPosition = STREAMPOS(stream); return true; } @@ -180,7 +180,7 @@ RpClumpGtaStreamRead2(RwStream *stream) if(clump == nil) return nil; - RwStreamSkip(stream, streamPosition - stream->Type.memory.position); + RwStreamSkip(stream, streamPosition - STREAMPOS(stream)); if(GeometryListStreamRead2(stream, &gGeomList) == nil){ GeometryListDeinitialize(&gGeomList); |