From 8db3853fb70e5f8b66bbf659e5e9b354e12bb93b Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Fri, 12 Mar 2021 18:35:55 +0100 Subject: [PATCH] Revert "Update meta_api.cpp (#883)" This reverts commit 7cb045c688b4774fc6502e01ab7049216e5d3359. --- amxmodx/meta_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index 1f2ff507..3287697c 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -1021,7 +1021,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 (pEntity && pEntity->pvPrivateData && pPlayer->IsBot()) { + } else if (pPlayer->IsBot()) { pPlayer->Connect(name, "127.0.0.1"/*CVAR_GET_STRING("net_address")*/); executeForwards(FF_ClientConnect, static_cast(pPlayer->index));