Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PostgreSQL: Fix listAllLoadableBlocks returning the same block
Suggested change from #9670 (comment)
  • Loading branch information
SmallJoker committed Apr 14, 2020
1 parent 5cf6318 commit 7c43cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/database-postgresql.cpp
Expand Up @@ -301,7 +301,7 @@ void MapDatabasePostgreSQL::listAllLoadableBlocks(std::vector<v3s16> &dst)
int numrows = PQntuples(results);

for (int row = 0; row < numrows; ++row)
dst.push_back(pg_to_v3s16(results, 0, 0));
dst.push_back(pg_to_v3s16(results, row, 0));

PQclear(results);
}
Expand Down

0 comments on commit 7c43cf4

Please sign in to comment.