mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-09 13:14:02 +02:00
Fix assertion failure in RMG
This commit is contained in:
parent
ea8995e901
commit
0d6bd0c60a
@ -313,8 +313,8 @@ void CMapGenOptions::resetPlayersMap()
|
|||||||
while (players.size() < realPlayersCnt && !availableColors.empty())
|
while (players.size() < realPlayersCnt && !availableColors.empty())
|
||||||
{
|
{
|
||||||
auto color = availableColors.front();
|
auto color = availableColors.front();
|
||||||
setPlayerTypeForStandardPlayer(color, EPlayerType::AI);
|
|
||||||
players[color].setColor(color);
|
players[color].setColor(color);
|
||||||
|
setPlayerTypeForStandardPlayer(color, EPlayerType::AI);
|
||||||
availableColors.erase(availableColors.begin());
|
availableColors.erase(availableColors.begin());
|
||||||
|
|
||||||
if (vstd::contains(savedPlayerSettings, color))
|
if (vstd::contains(savedPlayerSettings, color))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user