summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/cChunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 024e50adc..de8e3134c 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -656,7 +656,7 @@ void cChunk::TickMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, int a_BlockIdx
// Pick a direction in which to place the produce:
int x = 0, z = 0;
- int CheckType = a_TickRandom.randInt(4); // The index to the neighbors array which should be checked for emptiness
+ int CheckType = a_TickRandom.randInt(3); // The index to the neighbors array which should be checked for emptiness
switch (CheckType)
{
case 0: x = 1; break;