summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-10-07 00:13:18 +0200
committereray orçunus <erayorcunus@gmail.com>2019-10-07 00:13:18 +0200
commitc9d92a7d1b760ac23ec0b6117562f87c35ab41af (patch)
tree5b5d195d528c58bdcfb2b0b425c385481e20f60c /src/core
parentMerge pull request #226 from erorcun/erorcun (diff)
downloadre3-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.cpp2
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;
}
}