Skip to content

Commit

Permalink
Merge pull request uzh-rpg#78 from MarioBonse/master
Browse files Browse the repository at this point in the history
Fix bug on extra info
  • Loading branch information
yun-long authored Mar 8, 2021
2 parents 512cac0 + feb866a commit 5161d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flightlib/src/envs/vec_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void VecEnv<EnvBase>::perAgentStep(int agent_id, Ref<MatrixRowMajor<>> act,
done(agent_id) = envs_[agent_id]->isTerminalState(terminal_reward);

envs_[agent_id]->updateExtraInfo();
for (int j = 0; j < extra_info.size(); j++)
for (int j = 0; j < extra_info.cols(); j++)
extra_info(agent_id, j) =
envs_[agent_id]->extra_info_[extra_info_names_[j]];

Expand Down

0 comments on commit 5161d56

Please sign in to comment.