mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-07 19:42:26 +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())
|
if (!results.Success())
|
||||||
return 0;
|
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)
|
void ZoneDatabase::UpdateKarma(uint32 acct_id, uint32 amount)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user