- Added read barriers to all actor pointers within player_t except for

mo, ReadyWeapon and PendingWeapon.


SVN r1039 (trunk)
This commit is contained in:
Christoph Oelckers 2008-06-16 07:10:08 +00:00
commit d4c8cdf45a
3 changed files with 15 additions and 10 deletions

View file

@ -322,6 +322,7 @@ size_t player_t::FixPointers (const DObject *old, DObject *rep)
if (last_mate == old) last_mate = replacement, changed++;
if (ReadyWeapon == old) ReadyWeapon = static_cast<AWeapon *>(rep), changed++;
if (PendingWeapon == old) PendingWeapon = static_cast<AWeapon *>(rep), changed++;
if (PremorphWeapon == old) PremorphWeaon = static_cast<AWeapon *>(rep), changed++;
if (ConversationNPC == old) ConversationNPC = replacement, changed++;
if (ConversationPC == old) ConversationPC = replacement, changed++;
return changed;