diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-10-07 00:13:18 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-10-07 00:13:18 +0200 |
commit | c9d92a7d1b760ac23ec0b6117562f87c35ab41af (patch) | |
tree | 5b5d195d528c58bdcfb2b0b425c385481e20f60c /src/core | |
parent | Merge pull request #226 from erorcun/erorcun (diff) | |
download | re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar.gz re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar.bz2 re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar.lz re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar.xz re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.tar.zst re3-c9d92a7d1b760ac23ec0b6117562f87c35ab41af.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/re3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 8e20ffb3..b9b5c76e 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -146,7 +146,7 @@ LetThemFollowYou(void) { CPed *nearPed = player->m_nearPeds[i]; if (nearPed && !nearPed->IsPlayer()) { nearPed->SetObjective(OBJECTIVE_FOLLOW_PED_IN_FORMATION, (void*)player); - nearPed->m_pedFormation = (eFormation)(rand() & 7); + nearPed->m_pedFormation = (eFormation)(1 + (rand() & 7)); nearPed->bScriptObjectiveCompleted = false; } } |