diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:48:28 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:48:28 +0100 |
commit | ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf (patch) | |
tree | a566f4b1ac8ac55d2b00ec6fa750ef743708bc3d /src/core/FileLoader.cpp | |
parent | lcs car ctrl 1 (diff) | |
parent | small fix of fix (diff) | |
download | re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.gz re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.bz2 re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.lz re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.xz re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.tar.zst re3-ed5a9d5dc1b0b6d96f866ae11d1d6871d615a7bf.zip |
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r-- | src/core/FileLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index da678fd3..1c9b4036 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -345,7 +345,7 @@ CFileLoader::LoadCollisionModel(uint8 *buf, CColModel &model, char *modelname) if(model.numTriangles > 0){ model.triangles = (CColTriangle*)RwMalloc(model.numTriangles*sizeof(CColTriangle)); for(i = 0; i < model.numTriangles; i++){ - model.triangles[i].Set(model.vertices, *(int32*)buf, *(int32*)(buf+4), *(int32*)(buf+8), buf[12], buf[13]); + model.triangles[i].Set(*(int32*)buf, *(int32*)(buf+4), *(int32*)(buf+8), buf[12]); buf += 16; } }else |