mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- Fixed: New DBot instances were missing write barriers.
This commit is contained in:
parent
6166e83d28
commit
acd4a71de2
2 changed files with 2 additions and 0 deletions
|
@ -369,6 +369,7 @@ void FCajunMaster::DoAddBot (BYTE **stream)
|
||||||
{
|
{
|
||||||
multiplayer = true; //Prevents cheating and so on; emulates real netgame (almost).
|
multiplayer = true; //Prevents cheating and so on; emulates real netgame (almost).
|
||||||
players[bnum].Bot = new DBot;
|
players[bnum].Bot = new DBot;
|
||||||
|
GC::WriteBarrier (players[bnum].Bot);
|
||||||
players[bnum].Bot->skill = skill;
|
players[bnum].Bot->skill = skill;
|
||||||
playeringame[bnum] = true;
|
playeringame[bnum] = true;
|
||||||
players[bnum].mo = NULL;
|
players[bnum].mo = NULL;
|
||||||
|
|
|
@ -3049,6 +3049,7 @@ void player_t::Serialize (FArchive &arc)
|
||||||
if (SaveVersion < 4514 && IsBot)
|
if (SaveVersion < 4514 && IsBot)
|
||||||
{
|
{
|
||||||
Bot = new DBot;
|
Bot = new DBot;
|
||||||
|
GC::WriteBarrier (Bot);
|
||||||
|
|
||||||
arc << Bot->angle
|
arc << Bot->angle
|
||||||
<< Bot->dest
|
<< Bot->dest
|
||||||
|
|
Loading…
Reference in a new issue