- added more info to error message

This commit is contained in:
Mark Vejvoda 2012-10-15 00:48:05 +00:00
parent 6c62d675c3
commit b65bdee592

View File

@ -1518,7 +1518,7 @@ void World::initFactionTypes(GameSettings *gs) {
} }
if(gs->getFactionCount() > map.getMaxPlayers()) { if(gs->getFactionCount() > map.getMaxPlayers()) {
throw megaglest_runtime_error("This map only supports "+intToStr(map.getMaxPlayers())+" players"); throw megaglest_runtime_error("This map only supports "+intToStr(map.getMaxPlayers())+" players, factionCount is " + intToStr(gs->getFactionCount()));
} }
//create stats //create stats