- added more info to error message
This commit is contained in:
parent
6c62d675c3
commit
b65bdee592
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user