From acd4a71de2c9cdc12fe37ac88cdb413b01169ea9 Mon Sep 17 00:00:00 2001 From: ChillyDoom Date: Tue, 21 Oct 2014 19:33:48 +0100 Subject: [PATCH] - Fixed: New DBot instances were missing write barriers. --- src/b_game.cpp | 1 + src/p_user.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/b_game.cpp b/src/b_game.cpp index 30c2c483ba..807ec2b463 100644 --- a/src/b_game.cpp +++ b/src/b_game.cpp @@ -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; diff --git a/src/p_user.cpp b/src/p_user.cpp index 8980050e73..51105cd3d0 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -3049,6 +3049,7 @@ void player_t::Serialize (FArchive &arc) if (SaveVersion < 4514 && IsBot) { Bot = new DBot; + GC::WriteBarrier (Bot); arc << Bot->angle << Bot->dest