~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/economy/ship_fleet.cc

  • Committer: The Widelands Bunnybot
  • Date: 2021-11-16 20:15:52 UTC
  • Revision ID: bunnybot@widelands.org-20211116201552-j10a1djci333kc00
Resolve thread sanitizer issues (#5114)

- Increased thread safety using atomic member variables
- New compile option to build with TSan

(by Noordfrees)
17705ed8390c7d6654ddc3aa6dcd1a1b80270d39

Show diffs side-by-side

added added

removed removed

Lines of Context:
819
819
        fw.unsigned_8(HeaderShipFleet);
820
820
        fw.unsigned_8(kCurrentPacketVersion);
821
821
 
822
 
        fw.unsigned_8(owner_->player_number());
 
822
        fw.unsigned_8(owner_.load()->player_number());
823
823
 
824
824
        MapObject::save(egbase, mos, fw);
825
825