summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cChunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 2c915d2ef..2e6e7a633 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -1,3 +1,4 @@
+
#ifndef _WIN32
#include <cstring>
#include <cstdlib>
@@ -133,8 +134,7 @@ void cChunk::Initialize()
// Clear memory
memset( m_BlockData, 0x00, c_BlockDataSize );
- cWorldGenerator Generator;
- Generator.GenerateChunk( this );
+ m_World->GetWorldGenerator()->GenerateChunk( this );
CalculateHeightmap();
CalculateLighting();