diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-22 17:21:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 17:21:39 +0200 |
commit | b182fa4bb89a770d2e34da162eb46cdbaceb153b (patch) | |
tree | b641e2e0a9dc0edddae8e09d04660c13936798c2 /src/entities/Entity.cpp | |
parent | README 64-bit preparation (diff) | |
parent | Peds, Hud, CFO 1/2, fixes - including zone names (diff) | |
download | re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.gz re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.bz2 re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.lz re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.xz re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.zst re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.zip |
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r-- | src/entities/Entity.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index 63ea03fc..4c88c485 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -620,6 +620,23 @@ CEntity::PruneReferences(void) } } +// Clean up the reference from *pent -> 'this' +void +CEntity::CleanUpOldReference(CEntity **pent) +{ + CReference* ref, ** lastnextp; + lastnextp = &m_pFirstReference; + for (ref = m_pFirstReference; ref; ref = ref->next) { + if (ref->pentity == pent) { + *lastnextp = ref->next; + ref->next = CReferences::pEmptyList; + CReferences::pEmptyList = ref; + break; + } + lastnextp = &ref->next; + } +} + void CEntity::UpdateRpHAnim(void) { |