More cleanup of some QueryDatabase references that no longer need auto results

This commit is contained in:
Akkadius 2015-01-19 05:40:27 -06:00
parent 98a49ad086
commit acb677a4ba
2 changed files with 1 additions and 5 deletions

View File

@ -5382,14 +5382,12 @@ bool Client::TryReward(uint32 claim_id) {
"WHERE account_id = %i AND reward_id = %i",
AccountID(), claim_id);
auto results = database.QueryDatabase(query);
if(!results.Success())
}
else {
query = StringFormat("UPDATE account_rewards SET amount = (amount-1) "
"WHERE account_id = %i AND reward_id = %i",
AccountID(), claim_id);
auto results = database.QueryDatabase(query);
if(!results.Success())
}
InternalVeteranReward ivr = (*iter);

View File

@ -2852,9 +2852,7 @@ void ZoneDatabase::SaveBuffs(Client *client) {
buffs[index].magic_rune, buffs[index].persistant_buff, buffs[index].dot_rune,
buffs[index].caston_x, buffs[index].caston_y, buffs[index].caston_z,
buffs[index].ExtraDIChance);
auto results = QueryDatabase(query);
if (!results.Success())
QueryDatabase(query);
}
}