I did nothing special just added the lines you mentioned above...
bot.cpp:
Code:
if (IS_DEDICATED_SERVER())
printf("JoeBOT : Creating bot...\n");
else if (pPlayer)
ClientPrint( VARS(pPlayer), HUD_PRINTNOTIFY, "JoeBOT : Creating bot...\n");
//FREE_PRIVATE(BotEnt);
//BotEnt->pvPrivateData = 0;
+ if (BotEnt->pvPrivateData != NULL)
+ FREE_PRIVATE (BotEnt);
+ BotEnt->pvPrivateData = NULL;
// create the player entity by calling MOD's player function
// (from LINK_ENTITY_TO_CLASS for player object)
// CALL_GAME_ENTITY (PLID, "player", VARS(BotEnt));
player( VARS(BotEnt) );
infobuffer = GET_INFOBUFFER( BotEnt );
clientIndex = ENTINDEX( BotEnt );