From 86b33c4922e83cc4f3800212762f341a9e56a904 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 7 Feb 2013 16:17:55 +0400 Subject: [PATCH] Fix compile error (MSVC2010). --- src/mapgen.cpp | 2 +- src/mapgen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 5a78a541e..b19073e90 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -179,7 +179,7 @@ void EmergeManager::setParamsToSettings(Settings *settings) { } -bool EmergeManager::registerMapgen(std::string mgname, MapgenFactory *mgfactory) { +void EmergeManager::registerMapgen(std::string mgname, MapgenFactory *mgfactory) { mglist.insert(std::make_pair(mgname, mgfactory)); infostream << "EmergeManager: registered mapgen " << mgname << std::endl; } diff --git a/src/mapgen.h b/src/mapgen.h index febf37e63..4f1ab4ebd 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -122,7 +122,7 @@ public: Mapgen *getMapgen(); void addBlockToQueue(); - bool registerMapgen(std::string name, MapgenFactory *mgfactory); + void registerMapgen(std::string name, MapgenFactory *mgfactory); MapgenParams *getParamsFromSettings(Settings *settings); void setParamsToSettings(Settings *settings); -- 2.25.1