- bugfix for switching human to AI on disconnect (the check used the wrong index)
This commit is contained in:
parent
707a26feb2
commit
40a0707519
|
@ -774,7 +774,7 @@ void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRo
|
|||
faction->getControlType() == ctNetworkCpu ||
|
||||
faction->getControlType() == ctNetworkCpuUltra ||
|
||||
faction->getControlType() == ctNetworkCpuMega) {
|
||||
ConnectionSlot *slot = server->getSlot(i);
|
||||
ConnectionSlot *slot = server->getSlot(faction->getIndex());
|
||||
if(aiInterfaces[i] == NULL && (slot == NULL || slot->isConnected() == false)) {
|
||||
|
||||
faction->setControlType(ctCpu);
|
||||
|
|
Loading…
Reference in New Issue
Block a user