mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
ZoneDatabase::GetKarma crash fix
This commit is contained in:
1 parent
4e9c3e19d2
commit
3bcfcc6308
1 file changed
+4
-2
+4
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user