Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Fix index mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
daedsidog committed Apr 27, 2019
1 parent f6046ff commit c2ea469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fanna/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void net::rebuild_database(void) {
database << samples << " " << hindsight_level * 5 << " 1" << std::endl;
for (int i = 0; i < samples; ++i) {
for (int j = 0; j < hindsight_level * 5; ++j)
database << inputs.at(j * hindsight_level * 5 + i) << " ";
database << inputs.at(i * hindsight_level * 5 + j) << " ";
database << std::endl << inputs.at(i) << " " << std::endl;
}
database.close();
Expand Down

0 comments on commit c2ea469

Please sign in to comment.