aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/database_postgres.cc2
-rw-r--r--src/database_sqlite.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/database_postgres.cc b/src/database_postgres.cc
index d42b5a7..b9b7234 100644
--- a/src/database_postgres.cc
+++ b/src/database_postgres.cc
@@ -2441,7 +2441,7 @@ bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray<THouseT
Transfer.HouseID = GetResultInt(Result, Row, 0);
Transfer.NewOwnerID = GetResultInt(Result, Row, 1);
Transfer.Price = GetResultInt(Result, Row, 2);
- StringBufCopy(Transfer.NewOwnerName, GetResultText(Result, Row, 4));
+ StringBufCopy(Transfer.NewOwnerName, GetResultText(Result, Row, 3));
Transfers->Push(Transfer);
}
diff --git a/src/database_sqlite.cc b/src/database_sqlite.cc
index a3aac0d..670180b 100644
--- a/src/database_sqlite.cc
+++ b/src/database_sqlite.cc
@@ -1686,7 +1686,7 @@ bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray<THouseT
Transfer.HouseID = sqlite3_column_int(Stmt, 0);
Transfer.NewOwnerID = sqlite3_column_int(Stmt, 1);
Transfer.Price = sqlite3_column_int(Stmt, 2);
- StringBufCopy(Transfer.NewOwnerName, (const char*)sqlite3_column_text(Stmt, 4));
+ StringBufCopy(Transfer.NewOwnerName, (const char*)sqlite3_column_text(Stmt, 3));
Transfers->Push(Transfer);
}