fix small issue with TransferHouses query
This commit is contained in:
parent
6052f24524
commit
edea08d11c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user