- Fixed: New DBot instances were missing write barriers.

This commit is contained in:
ChillyDoom 2014-10-21 19:33:48 +01:00
commit acd4a71de2
2 changed files with 2 additions and 0 deletions

View file

@ -369,6 +369,7 @@ void FCajunMaster::DoAddBot (BYTE **stream)
{
multiplayer = true; //Prevents cheating and so on; emulates real netgame (almost).
players[bnum].Bot = new DBot;
GC::WriteBarrier (players[bnum].Bot);
players[bnum].Bot->skill = skill;
playeringame[bnum] = true;
players[bnum].mo = NULL;