fix default and const for

This commit is contained in:
Aaron Kimbre 2023-07-30 22:55:32 -05:00
parent c982f1954e
commit feee4e967f
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ CDVendorComponentTable::CDVendorComponentTable(void) {
while (!tableData.eof()) {
CDVendorComponent entry;
entry.id = tableData.getIntField("id", -1);
entry.buyScalar = tableData.getFloatField("buyScalar", -1.0f);
entry.buyScalar = tableData.getFloatField("buyScalar", 0.0f);
entry.sellScalar = tableData.getFloatField("sellScalar", -1.0f);
entry.refreshTimeSeconds = tableData.getFloatField("refreshTimeSeconds", -1.0f);
entry.LootMatrixIndex = tableData.getIntField("LootMatrixIndex", -1);

View File

@ -1294,7 +1294,7 @@ void GameMessages::SendVendorStatusUpdate(Entity* entity, const SystemAddress& s
bitStream.Write(bUpdateOnly);
bitStream.Write<uint32_t>(vendorItems.size());
for (auto item : vendorItems) {
for (const auto item : vendorItems) {
bitStream.Write(item.lot);
bitStream.Write(item.sortPriority);
}