From: Ilya Zhuravlev Date: Thu, 7 Feb 2013 12:17:55 +0000 (+0400) Subject: Fix compile error (MSVC2010). X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=86b33c4922e83cc4f3800212762f341a9e56a904;p=zefram%2Fminetest%2Fminetest_engine.git Fix compile error (MSVC2010). --- diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 5a78a541..b19073e9 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 febf37e6..4f1ab4eb 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);