Account Age bug - maybe?

Old bugs stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Account Age bug - maybe?

Post by John Adams » 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:

Code: Select all

DATEDIFF(curdate(), created_date) as accage
And the code uses it like this:

Code: Select all

		if (row[28])
			client->GetPlayer()->GetPlayerInfo()->SetAccountAge(atoi(row[28]));
Checkint out SetAccountAge, it's declared using an int8 (max 255??) in Player.h

Code: Select all

void SetAccountAge(int8 days);
Does this seem accurate? Or should we expect to never see accounts older than 255 days? Confused.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Account Age bug - maybe?

Post by Zcoretri » Fri Feb 15, 2013 4:21 pm

On live I am over 3K in base account age 3.3k in overall account age, so I would think it should be a int16 at least.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests