diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 16:55:16 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 16:55:16 +0200 |
commit | e650c06acd17d6440fbc31bd9dc150d6dd17c45b (patch) | |
tree | 15ccabed4c8c5d7c5c2f7a636035876cbd183e4d /src/entities/Dummy.cpp | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
parent | Merge pull request #79 from Nick007J/master (diff) | |
download | re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar.gz re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar.bz2 re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar.lz re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar.xz re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.tar.zst re3-e650c06acd17d6440fbc31bd9dc150d6dd17c45b.zip |
Diffstat (limited to 'src/entities/Dummy.cpp')
-rw-r--r-- | src/entities/Dummy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entities/Dummy.cpp b/src/entities/Dummy.cpp index 68b67b5c..5401c1fa 100644 --- a/src/entities/Dummy.cpp +++ b/src/entities/Dummy.cpp @@ -31,7 +31,7 @@ CDummy::Add(void) for(x = xstart; x <= xend; x++){ s = CWorld::GetSector(x, y); if(x == xmid && y == ymid) - list = &s->m_lists[ENTITYLIST_OBJECTS]; + list = &s->m_lists[ENTITYLIST_DUMMIES]; else list = &s->m_lists[ENTITYLIST_DUMMIES_OVERLAP]; CPtrNode *node = list->InsertItem(this); @@ -52,6 +52,7 @@ CDummy::Remove(void) } STARTPATCHES + InjectHook(0x473810, &CDummy::dtor, PATCH_JUMP); InjectHook(0x473860, &CDummy::Add_, PATCH_JUMP); InjectHook(0x473AD0, &CDummy::Remove_, PATCH_JUMP); ENDPATCHES |