fix small issue with TransferHouses query

This commit is contained in:
fusion32 2026-02-09 14:25:21 -03:00
parent 6052f24524
commit edea08d11c
2 changed files with 2 additions and 2 deletions

View File

@ -2441,7 +2441,7 @@ bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray<THouseT
Transfer.HouseID = GetResultInt(Result, Row, 0); Transfer.HouseID = GetResultInt(Result, Row, 0);
Transfer.NewOwnerID = GetResultInt(Result, Row, 1); Transfer.NewOwnerID = GetResultInt(Result, Row, 1);
Transfer.Price = GetResultInt(Result, Row, 2); Transfer.Price = GetResultInt(Result, Row, 2);
StringBufCopy(Transfer.NewOwnerName, GetResultText(Result, Row, 4)); StringBufCopy(Transfer.NewOwnerName, GetResultText(Result, Row, 3));
Transfers->Push(Transfer); Transfers->Push(Transfer);
} }

View File

@ -1686,7 +1686,7 @@ bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray<THouseT
Transfer.HouseID = sqlite3_column_int(Stmt, 0); Transfer.HouseID = sqlite3_column_int(Stmt, 0);
Transfer.NewOwnerID = sqlite3_column_int(Stmt, 1); Transfer.NewOwnerID = sqlite3_column_int(Stmt, 1);
Transfer.Price = sqlite3_column_int(Stmt, 2); 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); Transfers->Push(Transfer);
} }