Skip to content

Commit 7c43cf4

Browse files
committedApr 14, 2020
PostgreSQL: Fix listAllLoadableBlocks returning the same block
Suggested change from #9670 (comment)
1 parent 5cf6318 commit 7c43cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/database/database-postgresql.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void MapDatabasePostgreSQL::listAllLoadableBlocks(std::vector<v3s16> &dst)
301301
int numrows = PQntuples(results);
302302

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

306306
PQclear(results);
307307
}

0 commit comments

Comments
 (0)
Please sign in to comment.