Skip to content

Commit

Permalink
Update meta_api.cpp (#883)
Browse files Browse the repository at this point in the history
Fixes: #875
  • Loading branch information
afwn90cj93201nixr2e1re committed Nov 23, 2020
1 parent 73f3afa commit 7cb045c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amxmodx/meta_api.cpp
Expand Up @@ -1013,7 +1013,7 @@ void C_ClientUserInfoChanged_Post(edict_t *pEntity, char *infobuffer)
if (pPlayer->ingame)
{
pPlayer->name =name; // Make sure player have name up to date
} else if (pPlayer->IsBot()) {
} else if (pEntity && pEntity->pvPrivateData && pPlayer->IsBot()) {
pPlayer->Connect(name, "127.0.0.1"/*CVAR_GET_STRING("net_address")*/);

executeForwards(FF_ClientConnect, static_cast<cell>(pPlayer->index));
Expand Down

0 comments on commit 7cb045c

Please sign in to comment.