Skip to content

Commit

Permalink
Fix #2850: [modify_side] share_vision=yes doesn't do anything
Browse files Browse the repository at this point in the history
Thanks to @gfgtdf for the suggested fix that works well.

(cherry-picked from commit 82e04ab)
  • Loading branch information
jyrkive committed Oct 7, 2018
1 parent 32da54b commit c6b7586
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/team.hpp
Expand Up @@ -391,9 +391,13 @@ class team
void set_share_vision(const std::string& vision_status) {
info_.share_vision = SHARE_VISION::ALL;
info_.share_vision.parse(vision_status);
clear_caches();
}

void set_share_vision(SHARE_VISION vision_status) { info_.share_vision = vision_status; }
void set_share_vision(SHARE_VISION vision_status) {
info_.share_vision = vision_status;
clear_caches();
}

void handle_legacy_share_vision(const config& cfg)
{
Expand Down

0 comments on commit c6b7586

Please sign in to comment.