aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-04-14 20:30:02 +0200
committerSmallJoker <mk939@ymail.com>2020-04-14 20:42:40 +0200
commit7c43cf47c37b0204e34d12670d2e6975eb36b45a (patch)
tree05023f263cb17be7e5a275b61afc9238424e6b41 /src
parent5cf6318117edcae6bf30d829d9e9dd9dbf1d4bf7 (diff)
downloadminetest-7c43cf47c37b0204e34d12670d2e6975eb36b45a.tar.gz
minetest-7c43cf47c37b0204e34d12670d2e6975eb36b45a.tar.bz2
minetest-7c43cf47c37b0204e34d12670d2e6975eb36b45a.zip
PostgreSQL: Fix listAllLoadableBlocks returning the same block
Suggested change from https://github.com/minetest/minetest/issues/9670#issuecomment-613563738
Diffstat (limited to 'src')
-rw-r--r--src/database/database-postgresql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database-postgresql.cpp b/src/database/database-postgresql.cpp
index 77385e240..92816205c 100644
--- a/src/database/database-postgresql.cpp
+++ b/src/database/database-postgresql.cpp
@@ -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);
}