Merge aftermath

This commit is contained in:
akkadius committed 2014-09-21 02:58:56 -05:00
1 parent ad29fa9cfa
commit 4ed88e348e
2 files changed
+8 -3

No files matched your search

+7 -2
View File
@@ -782,10 +782,15 @@ uint32 Database::GetAccountIDByChar(const char* charname, uint32* oCharID) {
}
if (results.RowCount() != 1)
return 0;
return 0;
auto row = results.begin();
if (row[0]){ accountId = atoi(row[0]); }
uint32 accountId = atoi(row[0]);
if (oCharID)
*oCharID = atoi(row[1]);
return accountId;
}