aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_indev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen_indev.cpp')
-rw-r--r--src/mapgen_indev.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapgen_indev.cpp b/src/mapgen_indev.cpp
index ac5b4e811..f01547156 100644
--- a/src/mapgen_indev.cpp
+++ b/src/mapgen_indev.cpp
@@ -26,9 +26,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
///////////////////////////////////////////////////////////////////////////////
-void NoiseIndev::init(NoiseIndevParams *np, int seed, int sx, int sy, int sz) {
- Noise::init((NoiseParams*)np, seed, sx, sy, sz);
- this->npindev = np;
+void NoiseIndev::init(NoiseParams *np, int seed, int sx, int sy, int sz) {
+ Noise::init(np, seed, sx, sy, sz);
+ this->npindev = (NoiseIndevParams*) np;
}
NoiseIndev::NoiseIndev(NoiseIndevParams *np, int seed, int sx, int sy) : Noise(np, seed, sx, sy) {