aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-02-09 14:25:21 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-02-09 14:25:21 -0300
commitedea08d11cc306955d8d732164ec383d37ea1f62 (patch)
treeebf3a35aa0141e5d723f03e32119f3f263075bdd /src
parent6052f2452409c2d1560984b2d2c5cfc3517742f4 (diff)
downloadquerymanager-master.tar.gz
querymanager-master.zip
fix small issue with TransferHouses queryHEADmaster
Diffstat (limited to 'src')
-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);
}