summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index b7623a33..c9a8ede7 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -7846,7 +7846,7 @@ IsPedPointerValid_NotInWorld(CPed* pPed)
{
if (!pPed)
return false;
- int index = CPools::GetPedPool()->GetJustIndex(pPed);
+ int index = CPools::GetPedPool()->GetJustIndex_NoFreeAssert(pPed);
#ifdef FIX_BUGS
if (index < 0 || index >= NUMPEDS)
#else