summaryrefslogtreecommitdiffstats
path: root/src/control/Population.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/Population.cpp')
-rw-r--r--src/control/Population.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/Population.cpp b/src/control/Population.cpp
index a98721ac..d7e32dbf 100644
--- a/src/control/Population.cpp
+++ b/src/control/Population.cpp
@@ -1,6 +1,7 @@
#include "common.h"
#include "patcher.h"
#include "Game.h"
+#include "General.h"
#include "World.h"
#include "Entity.h"
#include "Population.h"
@@ -79,6 +80,12 @@ CPopulation::RemovePed(CEntity* ent)
delete ent;
}
+int32
+CPopulation::ChooseCivilianOccupation(int32 group)
+{
+ return ms_pPedGroups[group].models[CGeneral::GetRandomNumberInRange(0, 8)];
+}
+
STARTPATCHES
InjectHook(0x4F3770, CPopulation::Initialise, PATCH_JUMP);
ENDPATCHES \ No newline at end of file