Style nits

This commit is contained in:
Michael Cook (mackal) 2014-09-14 16:00:18 -04:00
parent 0f662bf70c
commit e256175ce6

View File

@ -548,8 +548,8 @@ void ZoneDatabase::DeleteWorldContainer(uint32 parent_id, uint32 zone_id)
}
Trader_Struct* ZoneDatabase::LoadTraderItem(uint32 char_id){
Trader_Struct* ZoneDatabase::LoadTraderItem(uint32 char_id)
{
Trader_Struct* loadti = new Trader_Struct;
memset(loadti,0,sizeof(Trader_Struct));
@ -562,7 +562,7 @@ Trader_Struct* ZoneDatabase::LoadTraderItem(uint32 char_id){
loadti->Code = BazaarTrader_ShowItems;
for (auto row = results.begin(); row != results.end(); ++row) {
if(atoi(row[5])>=80 || atoi(row[4])<0) {
if (atoi(row[5]) >= 80 || atoi(row[4]) < 0) {
_log(TRADING__CLIENT, "Bad Slot number when trying to load trader information!\n");
continue;
}
@ -573,8 +573,8 @@ Trader_Struct* ZoneDatabase::LoadTraderItem(uint32 char_id){
return loadti;
}
TraderCharges_Struct* ZoneDatabase::LoadTraderItemWithCharges(uint32 char_id){
TraderCharges_Struct* ZoneDatabase::LoadTraderItemWithCharges(uint32 char_id)
{
TraderCharges_Struct* loadti = new TraderCharges_Struct;
memset(loadti,0,sizeof(TraderCharges_Struct));
@ -586,7 +586,7 @@ TraderCharges_Struct* ZoneDatabase::LoadTraderItemWithCharges(uint32 char_id){
}
for (auto row = results.begin(); row != results.end(); ++row) {
if(atoi(row[5])>=80 || atoi(row[5])<0) {
if (atoi(row[5]) >= 80 || atoi(row[5]) < 0) {
_log(TRADING__CLIENT, "Bad Slot number when trying to load trader information!\n");
continue;
}
@ -596,7 +596,6 @@ TraderCharges_Struct* ZoneDatabase::LoadTraderItemWithCharges(uint32 char_id){
loadti->Charges[atoi(row[5])] = atoi(row[3]);
loadti->ItemCost[atoi(row[5])] = atoi(row[4]);
}
return loadti;
}