summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-13 13:47:55 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-13 13:47:55 +0200
commitd8d2f35e9dd354fba14f8d6512e818d18d2066c2 (patch)
tree159374402a90eb8a6b15e5a4bef2ea2d854985fa /source/World.cpp
parentSeventh round of fixes (diff)
downloadcuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.gz
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.bz2
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.lz
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.xz
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.zst
cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/World.cpp b/source/World.cpp
index da9466bf8..92098bd8b 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -2576,7 +2576,7 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eTyp
int ShColor = GetTickRandomNumber(15); // 0 .. 15 - Sheep
bool SkType = GetDimension() == biNether; // Skeleton
- int VilType = GetTickRandomNumber(6); // 0 .. 5 - Villager
+ int VilType = GetTickRandomNumber(cVillager::vtMax); // 0 .. 6 - Villager
if (VilType == 6) { VilType = 0; } // Give farmers a better chance of spawning
int HseType = GetTickRandomNumber(7); // 0 .. 7 - Horse Type (donkey, zombie, etc.)