diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-03-01 04:43:30 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-03-01 04:44:58 +0300 |
commit | ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe (patch) | |
tree | af779a144813d519e312398ba77cfdbeb9260420 /src/peds/PlayerPed.cpp | |
parent | 625a43064a3daad0dd02878f2ce67654eb3a0da4 (diff) |
fixes
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;
}
|