diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-01 12:19:42 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-01 12:19:42 +0100 |
commit | ceab73a053d1513c8a40354a3e502bc1c3f01819 (patch) | |
tree | 80db097ad3fe1e56ab0d72b9dbe6a7d0d3fbb6c1 /src/peds/PlayerPed.cpp | |
parent | removed debug leftovers (diff) | |
parent | Merge pull request #339 from erorcun/erorcun (diff) | |
download | re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar.gz re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar.bz2 re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar.lz re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar.xz re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.tar.zst re3-ceab73a053d1513c8a40354a3e502bc1c3f01819.zip |
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r-- | src/peds/PlayerPed.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 9d4adcef..b459ed84 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -79,7 +79,11 @@ void CPlayerPed::MakeObjectTargettable(int32 handle)
{
for (int i = 0; i < ARRAY_SIZE(m_nTargettableObjects); i++) {
- if (CPools::GetObjectPool()->GetAt(m_nTargettableObjects[i]) == nil) {
+ if (
+#ifdef FIX_BUGS
+ m_nTargettableObjects[i] == -1 ||
+#endif
+ CPools::GetObjectPool()->GetAt(m_nTargettableObjects[i]) == nil) {
m_nTargettableObjects[i] = handle;
return;
}
|