ZoneDatabase::GetKarma crash fix

This commit is contained in:
Akkadius 2017-10-16 12:56:00 -05:00
parent 4e9c3e19d2
commit 3bcfcc6308

View File

@ -2953,9 +2953,11 @@ uint32 ZoneDatabase::GetKarma(uint32 acct_id)
if (!results.Success())
return 0;
auto row = results.begin();
for (auto row = results.begin(); row != results.end(); ++row) {
return atoi(row[0]);
}
return atoi(row[0]);
return 0;
}
void ZoneDatabase::UpdateKarma(uint32 acct_id, uint32 amount)