Fixed bug in MapGenerator.cpp