Remove guest account in network splitscreen

This commit is contained in:
Benau 2018-03-22 14:43:16 +08:00
parent ebadc84945
commit d8b68a2cbc

View File

@ -42,7 +42,8 @@ using namespace irr;
void SplitscreenPlayerDialog::beforeAddingWidgets()
{
m_profiles = getWidget<SpinnerWidget>("name-spinner");
for (unsigned i = 0; i < PlayerManager::get()->getNumPlayers(); i++)
for (unsigned i = 0; i < PlayerManager::get()->getNumNonGuestPlayers();
i++)
{
PlayerProfile* p = PlayerManager::get()->getPlayer(i);
if (!NetworkConfig::get()->playerExists(p))