diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-12-27 03:23:37 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-12-27 03:23:37 +0100 |
commit | 36e64dbd22a7e5ec6fc33a5087ed9788f1874f84 (patch) | |
tree | 390b86b4bf74c2de93d74e854ece1487040e3469 /src/rw | |
parent | fix a struct init (diff) | |
download | re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.gz re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.bz2 re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.lz re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.xz re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.zst re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.zip |
Diffstat (limited to 'src/rw')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 6 | ||||
-rw-r--r-- | src/rw/VisibilityPlugins.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index 21e00725..916696de 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -936,12 +936,12 @@ CVisibilityPlugins::FrameCopyConstructor(void *dst, const void *src, int32, int3 } void -CVisibilityPlugins::SetFrameHierarchyId(RwFrame *frame, uintptr id) +CVisibilityPlugins::SetFrameHierarchyId(RwFrame *frame, intptr id) { FRAMEEXT(frame)->id = id; } -uintptr +intptr CVisibilityPlugins::GetFrameHierarchyId(RwFrame *frame) { return FRAMEEXT(frame)->id; @@ -978,7 +978,7 @@ void CVisibilityPlugins::SetClumpModelInfo(RpClump *clump, CClumpModelInfo *modelInfo) { CVehicleModelInfo *vmi; - SetFrameHierarchyId(RpClumpGetFrame(clump), (uintptr)modelInfo); + SetFrameHierarchyId(RpClumpGetFrame(clump), (intptr)modelInfo); // Unused switch (modelInfo->GetModelType()) { diff --git a/src/rw/VisibilityPlugins.h b/src/rw/VisibilityPlugins.h index dd02f2e1..0721dfcc 100644 --- a/src/rw/VisibilityPlugins.h +++ b/src/rw/VisibilityPlugins.h @@ -103,10 +103,10 @@ public: struct FrameExt { // BUG: this is abused to hold a pointer by SetClumpModelInfo - uintptr id; + intptr id; }; - static void SetFrameHierarchyId(RwFrame *frame, uintptr id); - static uintptr GetFrameHierarchyId(RwFrame *frame); + static void SetFrameHierarchyId(RwFrame *frame, intptr id); + static intptr GetFrameHierarchyId(RwFrame *frame); static void *FrameConstructor(void *object, int32 offset, int32 len); static void *FrameDestructor(void *object, int32 offset, int32 len); |