- bugfix for switching human to AI on disconnect (the check used the wrong index)

This commit is contained in:
Mark Vejvoda 2010-10-22 16:47:08 +00:00
parent 707a26feb2
commit 40a0707519
1 changed files with 1 additions and 1 deletions

View File

@ -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);