diff options
author | aap <aap@papnet.eu> | 2020-04-09 16:35:24 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-09 17:45:05 +0200 |
commit | 6225e5072309e69e98246f59222ba82ddf6a418a (patch) | |
tree | 9a34067ead53a4b1dc5682ac2d78ede339b62c0d /src/peds/Ped.cpp | |
parent | a5c71516563dbdb9513b7aa2dd109f01c0e9cff3 (diff) |
fixed questionable RW usage; changed radar mask to PS2 techinque
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r-- | src/peds/Ped.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 54816b1c..2cd942f9 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -676,7 +676,7 @@ RemoveAllModelCB(RwObject *object, void *data) { RpAtomic *atomic = (RpAtomic*)object; if (CVisibilityPlugins::GetAtomicModelInfo(atomic)) { - RpClumpRemoveAtomic(atomic->clump, atomic); + RpClumpRemoveAtomic(RpAtomicGetClump(atomic), atomic); RpAtomicDestroy(atomic); } return object; @@ -902,7 +902,7 @@ static RwObject* SetPedAtomicVisibilityCB(RwObject* object, void* data) { if (data == nil) - RpAtomicSetFlags(object, 0); + RpAtomicSetFlags((RpAtomic*)object, 0); return object; } |