mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	PostgreSQL: Fix listAllLoadableBlocks returning the same block
Suggested change from https://github.com/minetest/minetest/issues/9670#issuecomment-613563738
This commit is contained in:
		@@ -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);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user