diff --git a/zone/client.cpp b/zone/client.cpp index 3aaa23621..3190f7657 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -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); diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index 613732275..e2e6689b0 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -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); } }