Skip to content

Commit

Permalink
Fix bug on extra info
Browse files Browse the repository at this point in the history
If the extra info vectore was used it caused a seg fault.
  • Loading branch information
Mario committed Jan 23, 2021
1 parent 8b2983c commit feb866a
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 feb866a

Please sign in to comment.