Account Age bug - maybe?
Posted: Fri Feb 15, 2013 2:09 pm
I was poking around in loadCharacter() when I found this odd bit of code:
The SQL query builds this:
And the code uses it like this:
Checkint out SetAccountAge, it's declared using an int8 (max 255??) in Player.h
Does this seem accurate? Or should we expect to never see accounts older than 255 days? Confused.
The SQL query builds this:
Code: Select all
DATEDIFF(curdate(), created_date) as accageCode: Select all
if (row[28])
client->GetPlayer()->GetPlayerInfo()->SetAccountAge(atoi(row[28]));Code: Select all
void SetAccountAge(int8 days);