Fix non-ambient peds get deleted

This commit is contained in:
sardelka9515
2022-09-30 23:27:37 +08:00
parent 6e64c458df
commit 9173e9a99e

View File

@ -365,7 +365,7 @@ namespace RageCoop.Client
SyncedPed c = GetPedByHandle(p.Handle);
if (c == null && (p != Game.Player.Character))
{
if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType != EntityPopulationType.RandomAmbient)
if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType == EntityPopulationType.RandomAmbient)
{
p.Delete();
continue;