Skip to content

Commit

Permalink
fix team 0
Browse files Browse the repository at this point in the history
  • Loading branch information
typedeck0 authored Feb 22, 2023
1 parent 517808f commit 8f11da2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions know_thy_enemy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ uint16_t selected_team = 0;

void record_agent(ag* agent, uint16_t instid)
{
if (agent->team == 0)
return;
std::lock_guard<std::mutex>lock(mtx);
if (history.find(agent->team) == history.end())
{
Expand Down

0 comments on commit 8f11da2

Please sign in to comment.