mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-23 06:32:28 +00:00
More cleanup of some QueryDatabase references that no longer need auto results
This commit is contained in:
parent
98a49ad086
commit
acb677a4ba
@ -5382,14 +5382,12 @@ bool Client::TryReward(uint32 claim_id) {
|
|||||||
"WHERE account_id = %i AND reward_id = %i",
|
"WHERE account_id = %i AND reward_id = %i",
|
||||||
AccountID(), claim_id);
|
AccountID(), claim_id);
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
query = StringFormat("UPDATE account_rewards SET amount = (amount-1) "
|
query = StringFormat("UPDATE account_rewards SET amount = (amount-1) "
|
||||||
"WHERE account_id = %i AND reward_id = %i",
|
"WHERE account_id = %i AND reward_id = %i",
|
||||||
AccountID(), claim_id);
|
AccountID(), claim_id);
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
InternalVeteranReward ivr = (*iter);
|
InternalVeteranReward ivr = (*iter);
|
||||||
|
|||||||
@ -2852,9 +2852,7 @@ void ZoneDatabase::SaveBuffs(Client *client) {
|
|||||||
buffs[index].magic_rune, buffs[index].persistant_buff, buffs[index].dot_rune,
|
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].caston_x, buffs[index].caston_y, buffs[index].caston_z,
|
||||||
buffs[index].ExtraDIChance);
|
buffs[index].ExtraDIChance);
|
||||||
auto results = QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
if (!results.Success())
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user