mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-06 01:03:52 +00:00
ZoneDatabase::GetKarma crash fix
This commit is contained in:
parent
4e9c3e19d2
commit
3bcfcc6308
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user