View Single Post
  #10  
Old 10-14-2013, 07:57 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Why don't you just use 'ClientVersion' as a comparison?

you shouldn't need to access the db for this info since it a Client class property already.

Code:
if (tradee && tradee->IsClient() && (this.ClientVersion == tradee->CastToClient()->GetClientVersion()))
{ ... }
..or something like that...
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote