Skip to content
Permalink
Browse files
PostgreSQL: Fix listAllLoadableBlocks returning the same block
Suggested change from #9670 (comment)
  • Loading branch information
SmallJoker committed Apr 14, 2020
1 parent 5cf6318 commit 7c43cf47c37b0204e34d12670d2e6975eb36b45a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
}

0 comments on commit 7c43cf4

Please sign in to comment.